diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-04 14:41:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-04 14:41:38 +0000 |
commit | a92a94f719519ab5a06a2b704c656de9b4c4dc1c (patch) | |
tree | 0539f01dbe189f038925e9fb4e5bd111df213c12 /src/mv.c | |
parent | dc932e0a18cfa5a754dbfae62457d8ed7fffa2e7 (diff) | |
download | coreutils-a92a94f719519ab5a06a2b704c656de9b4c4dc1c.tar.xz |
(usage): Mention --help and --version.
(main): Handle flag_help and flag_version before checking for invocation errors.
Diffstat (limited to 'src/mv.c')
-rw-r--r-- | src/mv.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -160,8 +160,6 @@ main (argc, argv) usage (); } } - if (argc < optind + 2) - usage (); if (flag_version) fprintf (stderr, "%s\n", version_string); @@ -169,6 +167,9 @@ main (argc, argv) if (flag_help) usage (); + if (argc < optind + 2) + usage (); + if (make_backups) backup_type = get_version (version); @@ -447,7 +448,8 @@ Usage: %s [options] source dest\n\ Options:\n\ [-bfiuv] [-S backup-suffix] [-V {numbered,existing,simple}]\n\ [--backup] [--force] [--interactive] [--update] [--verbose]\n\ - [--suffix=backup-suffix] [--version-control={numbered,existing,simple}]\n", + [--suffix=backup-suffix] [--version-control={numbered,existing,simple}]\n\ + [--help] [--version]\n", program_name, program_name); exit (1); } |