5 #include "version-etc.h"
8 #define PROGRAM_NAME "true"
9 #define AUTHORS "no one"
11 /* The name this program was run with. */
18 Usage: %s [ignored command line arguments]\n\
20 Exit with a status code indicating success.\n\
22 These option names may not be abbreviated.\n\
25 program_name
, program_name
);
26 fputs (HELP_OPTION_DESCRIPTION
, stdout
);
27 fputs (VERSION_OPTION_DESCRIPTION
, stdout
);
28 printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT
);
33 main (int argc
, char **argv
)
35 program_name
= argv
[0];
36 setlocale (LC_ALL
, "");
37 bindtextdomain (PACKAGE
, LOCALEDIR
);
40 atexit (close_stdout
);
42 /* Recognize --help or --version only if it's the only command-line
43 argument and if POSIXLY_CORRECT is not set. */
44 if (argc
== 2 && getenv ("POSIXLY_CORRECT") == NULL
)
46 if (STREQ (argv
[1], "--help"))
49 if (STREQ (argv
[1], "--version"))
50 version_etc (stdout
, PROGRAM_NAME
, GNU_PACKAGE
, VERSION
, AUTHORS
);