diff options
author | Nathan Scott <nathans@sgi.com> | 2004-09-10 01:27:03 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2004-09-10 01:27:03 +0000 |
commit | a0276f5e5b91da9481606d9c9380f321a8fcaaff (patch) | |
tree | 7154ca78949536d48b61c23df45f0b188dff9ca4 /setfattr | |
parent | 2ce8a1c968451aa90da78e2c6d0bc7e7c9577cb7 (diff) | |
download | attr-a0276f5e5b91da9481606d9c9380f321a8fcaaff.tar.gz |
Clarify setfattr usage.
Diffstat (limited to 'setfattr')
-rw-r--r-- | setfattr/setfattr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/setfattr/setfattr.c b/setfattr/setfattr.c index 157c651..6d22628 100644 --- a/setfattr/setfattr.c +++ b/setfattr/setfattr.c @@ -33,7 +33,8 @@ #include "misc.h" #define CMD_LINE_OPTIONS "n:x:v:h" -#define CMD_LINE_SPEC "{-n name|-x name} [-v value] [-h] file..." +#define CMD_LINE_SPEC1 "{-n name} [-v value] [-h] file..." +#define CMD_LINE_SPEC2 "{-x name} [-h] file..." struct option long_options[] = { { "name", 1, 0, 'n' }, @@ -164,7 +165,8 @@ cleanup: void help(void) { printf(_("%s %s -- set extended attributes\n"), progname, VERSION); - printf(_("Usage: %s %s\n"), progname, CMD_LINE_SPEC); + printf(_("Usage: %s %s\n"), progname, CMD_LINE_SPEC1); + printf(_(" %s %s\n"), progname, CMD_LINE_SPEC2); printf(_( " -n, --name=name set the value of the named extended attribute\n" " -x, --remove=name remove the named extended attribute\n" @@ -257,8 +259,9 @@ int main(int argc, char *argv[]) synopsis: fprintf(stderr, _("Usage: %s %s\n" + " %s %s\n" "Try `%s --help' for more information.\n"), - progname, CMD_LINE_SPEC, progname); + progname, CMD_LINE_SPEC1, progname, CMD_LINE_SPEC2, progname); return 2; } |