diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-19 00:00:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-19 00:00:06 +0000 |
commit | 723d3d528db8b3abb05357bf5a7af7173c1636e7 (patch) | |
tree | 23fc7ea7e6b0721e7705f60a7c14bd9dcafd5eca /src/mv.c | |
parent | 712ac6d5a0122dbcbc89669143580de1326f1d46 (diff) | |
download | coreutils-723d3d528db8b3abb05357bf5a7af7173c1636e7.tar.xz |
merge with 3.8.4k
Diffstat (limited to 'src/mv.c')
-rw-r--r-- | src/mv.c | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -472,14 +472,17 @@ static void usage (status) int status; { - fprintf (status == 0 ? stdout : stderr, "\ + if (status != 0) + fprintf (stderr, "Try `%s --help' for more information.\n", + program_name); + else + { + printf ("\ Usage: %s [OPTION]... SOURCE DEST\n\ or: %s [OPTION]... SOURCE... DIRECTORY\n\ ", - program_name, program_name); - - if (status == 0) - printf ("\ + program_name, program_name); + printf ("\ \n\ -b, --backup make backup before removal\n\ -f, --force remove existing destinations, never prompt\n\ @@ -497,10 +500,6 @@ version control may be set with VERSION_CONTROL, values are:\n\ t, numbered make numbered backups\n\ nil, existing numbered if numbered backups exist, simple otherwise\n\ never, simple always make simple backups \n"); - - else - fprintf (stderr, "Try `%s --help' for more information.\n", - program_name); - + } exit (status); } |