From e79ea5b9a7349f127143345581e1cf8803b4f93a Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 21 Jun 2008 20:20:59 +0100 Subject: [PATCH] Deprecate -d as --daemon shortcut --- src/xcowsay.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/xcowsay.c b/src/xcowsay.c index 824f578..ce45568 100644 --- a/src/xcowsay.c +++ b/src/xcowsay.c @@ -77,21 +77,23 @@ static void read_from_stdin(void) static void usage() { printf - ("Usage: xcowsay [OPTION]... [MESSAGE]...\n" + ("%s: xcowsay [OPTION]... [MESSAGE]...\n" "%s\n\n" - "Options:\n" + "%s:\n" " -h, --help\t\t%s\n" " -v, --version\t\t%s\n" " -t, --time=SECONDS\t%s\n" " -r, --reading-speed=N\t%s\n" " -f, --font=FONT\t%s\n" - " -d, --daemon\t\t%s\n" + " --daemon\t\t%s\n" " --cow-size=SIZE\t%s\n" " --debug\t\t%s\n\n" "%s\n\n" "%s\n\n" "%s\n", + i18n("Usage"), i18n("Display a cow on your desktop with MESSAGE or standard input."), + i18n("Options"), i18n("Display this message and exit."), i18n("Print version information."), i18n("Number of seconds to display message for"), @@ -186,7 +188,7 @@ int main(int argc, char **argv) // Set a flag break; case 'd': - daemon_flag = 1; + break; case 'c': set_string_option("cow_size", optarg); -- 2.39.2