From 3934888e20ba16fb54f002f0b86b2dcdbbe86ca6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 21 Oct 1995 00:23:36 +0000 Subject: (options): FILE --> FILESYS in help msg. (args_doc): OPTION --> FS_OPTION, since the usage message already uses OPTION to mean those to fsysopts. (doc): New variable; give some common choices for FS_OPTION. --- utils/fsysopts.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/fsysopts.c b/utils/fsysopts.c index c540b4a7..120c3b7a 100644 --- a/utils/fsysopts.c +++ b/utils/fsysopts.c @@ -33,12 +33,14 @@ static struct argp_option options[] = { - {"dereference", 'L', 0, 0, "if FILE is a symbolic link, follow it"}, - {"recursive", 'R', 0, 0, "pass these options to any child translators"}, + {"dereference", 'L', 0, 0, "If FILESYS is a symbolic link, follow it"}, + {"recursive", 'R', 0, 0, "Pass these options to any child translators"}, {0, 0, 0, 0} }; - -static char *args_doc = "FILESYS OPTIONS..."; +static char *args_doc = "FILESYS FS_OPTION..."; +static char *doc = "The legal values for FS_OPTION depends on FILESYS, but\ + some common ones are: --readonly, --writable, --remount, --sync[=INTERVAL],\ + and --nosync."; /* ---------------------------------------------------------------- */ @@ -70,11 +72,11 @@ main(int argc, char *argv[]) err = argz_create (state->argv + state->index, &argz, &argz_len); if (err) error(3, err, "Can't create options vector"); - state->index = state->argc; /* Skip all the rest of the arguments */ + state->index = state->argc; /* stop parsing */ break; case ARGP_KEY_NO_ARGS: - argp_help (state->argp, stderr, ARGP_HELP_STD_USAGE); /* exits */ + argp_usage (state->argp); /* exits */ case 'R': recursive = 1; break; case 'L': deref = 1; break; @@ -84,7 +86,7 @@ main(int argc, char *argv[]) return 0; } - struct argp argp = {options, parse_opt, args_doc}; + struct argp argp = {options, parse_opt, args_doc, doc}; argp_parse (&argp, argc, argv, 0, 0); -- cgit v1.2.3