diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-29 17:09:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-29 17:09:54 +0000 |
commit | 587fbc3aa0015132504f5604fdbe798895d2afcf (patch) | |
tree | 6168b7dce051fd34b4c31398f0770dcc5ed45114 /mh | |
parent | b49ffcc453925dd43e25c2b75160efc09b9acf3b (diff) | |
download | mailutils-587fbc3aa0015132504f5604fdbe798895d2afcf.tar.gz mailutils-587fbc3aa0015132504f5604fdbe798895d2afcf.tar.bz2 |
(main): Use mu_argp_init.
Diffstat (limited to 'mh')
-rw-r--r-- | mh/anno.c | 3 | ||||
-rw-r--r-- | mh/comp.c | 3 | ||||
-rw-r--r-- | mh/fmtcheck.c | 3 | ||||
-rw-r--r-- | mh/folder.c | 3 | ||||
-rw-r--r-- | mh/forw.c | 3 | ||||
-rw-r--r-- | mh/inc.c | 3 | ||||
-rw-r--r-- | mh/install-mh.c | 4 | ||||
-rw-r--r-- | mh/mark.c | 3 | ||||
-rw-r--r-- | mh/mhl.c | 3 | ||||
-rw-r--r-- | mh/mhn.c | 3 | ||||
-rw-r--r-- | mh/mhpath.c | 3 | ||||
-rw-r--r-- | mh/pick.c | 3 | ||||
-rw-r--r-- | mh/refile.c | 3 | ||||
-rw-r--r-- | mh/repl.c | 3 | ||||
-rw-r--r-- | mh/rmf.c | 3 | ||||
-rw-r--r-- | mh/rmm.c | 3 | ||||
-rw-r--r-- | mh/scan.c | 3 | ||||
-rw-r--r-- | mh/send.c | 3 | ||||
-rw-r--r-- | mh/sortm.c | 3 | ||||
-rw-r--r-- | mh/whatnow.c | 3 | ||||
-rw-r--r-- | mh/whom.c | 3 |
21 files changed, 43 insertions, 21 deletions
@@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "anno (" PACKAGE_STRING ")"; +const char *program_version = "anno (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH anno\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -116,6 +116,7 @@ main (int argc, char **argv) mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -21,7 +21,7 @@ #include <sys/types.h> #include <sys/stat.h> -const char *argp_program_version = "comp (" PACKAGE_STRING ")"; +const char *program_version = "comp (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH comp\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -205,6 +205,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); diff --git a/mh/fmtcheck.c b/mh/fmtcheck.c index 7980b8c95..283a011da 100644 --- a/mh/fmtcheck.c +++ b/mh/fmtcheck.c @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "fmtcheck (" PACKAGE_STRING ")"; +const char *program_version = "fmtcheck (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH fmtcheck\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = ""; @@ -103,6 +103,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, NULL); diff --git a/mh/folder.c b/mh/folder.c index 720138c7e..be7ae80ba 100644 --- a/mh/folder.c +++ b/mh/folder.c @@ -32,7 +32,7 @@ #define obstack_chunk_free free #include <obstack.h> -const char *argp_program_version = "folder (" PACKAGE_STRING ")"; +const char *program_version = "folder (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH folder\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[action] [msg]"); @@ -527,6 +527,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "forw (" PACKAGE_STRING ")"; +const char *program_version = "forw (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH forw\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -357,6 +357,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "inc (" PACKAGE_STRING ")"; +const char *program_version = "inc (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH inc\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[+folder]"); @@ -175,6 +175,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, NULL); diff --git a/mh/install-mh.c b/mh/install-mh.c index 365844209..f85d8531d 100644 --- a/mh/install-mh.c +++ b/mh/install-mh.c @@ -17,7 +17,7 @@ #include <mh.h> -const char *argp_program_version = "install-mh (" PACKAGE_STRING ")"; +const char *program_version = "install-mh (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH install-mh\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = ""; @@ -66,9 +66,11 @@ main (int argc, char **argv) { char *home, *name; extern int mh_auto_install; + /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_auto_install = 0; mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, NULL); @@ -17,7 +17,7 @@ #include <mh.h> -const char *argp_program_version = "mark (" PACKAGE_STRING ")"; +const char *program_version = "mark (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH mark\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = "[msgs...]"; @@ -193,6 +193,7 @@ main (int argc, char **argv) url_t url; mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -21,7 +21,7 @@ #include <sys/stat.h> #include <unistd.h> -const char *argp_program_version = "mhl (" PACKAGE_STRING ")"; +const char *program_version = "mhl (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH mhl\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[files]"); @@ -219,6 +219,7 @@ main (int argc, char **argv) interactive = isatty (1) && isatty (0); mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -24,7 +24,7 @@ #define obstack_chunk_free free #include <obstack.h> -const char *argp_program_version = "mhn (" PACKAGE_STRING ")"; +const char *program_version = "mhn (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH mhn\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -2507,6 +2507,7 @@ main (int argc, char **argv) mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); diff --git a/mh/mhpath.c b/mh/mhpath.c index 71718f189..ae4ac70b1 100644 --- a/mh/mhpath.c +++ b/mh/mhpath.c @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "mhpath (" PACKAGE_STRING ")"; +const char *program_version = "mhpath (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH mhpath\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[+folder] [msgs]"); @@ -80,6 +80,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -25,7 +25,7 @@ #define obstack_chunk_free free #include <obstack.h> -const char *argp_program_version = "pick (" PACKAGE_STRING ")"; +const char *program_version = "pick (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH pick\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -347,6 +347,7 @@ main (int argc, char **argv) flags = isatty (0) ? 0 : ARGP_NO_ERRS; mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, flags, options, mh_option, args_doc, doc, opt_handler, NULL, &index); if (pick_parse (lexlist)) diff --git a/mh/refile.c b/mh/refile.c index 481f954c0..78c2b9c4b 100644 --- a/mh/refile.c +++ b/mh/refile.c @@ -24,7 +24,7 @@ #include <errno.h> #include <fcntl.h> -const char *argp_program_version = "refile (" PACKAGE_STRING ")"; +const char *program_version = "refile (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH refile\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -229,6 +229,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -21,7 +21,7 @@ #include <sys/stat.h> #include <unistd.h> -const char *argp_program_version = "reply (" PACKAGE_STRING ")"; +const char *program_version = "reply (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH repl\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -323,6 +323,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); if (mh_format_parse (format_str, &format)) @@ -28,7 +28,7 @@ #include <dirent.h> -const char *argp_program_version = "rmf (" PACKAGE_STRING ")"; +const char *program_version = "rmf (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH rmf\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[+folder]"); @@ -149,6 +149,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, NULL); if (!explicit_folder) @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "rmm (" PACKAGE_STRING ")"; +const char *program_version = "rmm (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH rmm\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[+folder] [msgs]"); @@ -76,6 +76,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -26,7 +26,7 @@ #include <time.h> #include <mailutils/observer.h> -const char *argp_program_version = "scan (" PACKAGE_STRING ")"; +const char *program_version = "scan (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH scan\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[+folder] [msgs]"); @@ -175,6 +175,7 @@ main (int argc, char **argv) /* Native Language Support */ mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); @@ -23,7 +23,7 @@ #include <stdarg.h> #include <pwd.h> -const char *argp_program_version = "send (" PACKAGE_STRING ")"; +const char *program_version = "send (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH send\v" "Options marked with `*' are not yet implemented.\n" "Use -help to obtain the list of traditional MH options."); @@ -443,6 +443,7 @@ main (int argc, char **argv) mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); diff --git a/mh/sortm.c b/mh/sortm.c index b264ffa35..83d4919db 100644 --- a/mh/sortm.c +++ b/mh/sortm.c @@ -22,7 +22,7 @@ #include <unistd.h> #include <signal.h> -const char *argp_program_version = "sortm (" PACKAGE_STRING ")"; +const char *program_version = "sortm (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH sortm\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = N_("[msgs]"); @@ -545,6 +545,7 @@ main (int argc, char **argv) url_t url; mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); if (!oplist) diff --git a/mh/whatnow.c b/mh/whatnow.c index 7766761b3..055b115c6 100644 --- a/mh/whatnow.c +++ b/mh/whatnow.c @@ -19,7 +19,7 @@ #include <mh.h> -const char *argp_program_version = "whatnow (" PACKAGE_STRING ")"; +const char *program_version = "whatnow (" PACKAGE_STRING ")"; static char doc[] = "GNU MH whatnow"; static char args_doc[] = N_("[FILE]"); @@ -101,6 +101,7 @@ main (int argc, char **argv) mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); argc -= index; @@ -17,7 +17,7 @@ #include <mh.h> -const char *argp_program_version = "whom (" PACKAGE_STRING ")"; +const char *program_version = "whom (" PACKAGE_STRING ")"; static char doc[] = N_("GNU MH whom\v" "Use -help to obtain the list of traditional MH options."); static char args_doc[] = "[file]"; @@ -111,6 +111,7 @@ main (int argc, char **argv) mu_init_nls (); + mu_argp_init (program_version, NULL); mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, opt_handler, NULL, &index); |