summaryrefslogtreecommitdiff
path: root/src/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mv.c b/src/mv.c
index 91906e139..05a8fa11f 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -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);
}