mv: Remove -i from usage and manpage

This commit is contained in:
sin 2015-02-19 14:56:02 +00:00
parent 8d53fc9a79
commit 0e008fe349
2 changed files with 5 additions and 6 deletions

8
mv.1
View File

@ -1,4 +1,4 @@
.Dd January 28, 2015 .Dd February 19, 2015
.Dt MV 1 .Dt MV 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
@ -6,7 +6,7 @@
.Nd move files and directories .Nd move files and directories
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl f | Fl i .Op Fl f
.Ar source ... .Ar source ...
.Ar destination .Ar destination
.Sh DESCRIPTION .Sh DESCRIPTION
@ -24,8 +24,8 @@ is not a directory,
overwrites the latter with the former. overwrites the latter with the former.
.Sh OPTIONS .Sh OPTIONS
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl f | Fl i .It Fl f
Do not prompt | Prompt before overwriting Do not prompt before overwriting.
.Ar destination . .Ar destination .
Prompting has not been implemented yet. Prompting has not been implemented yet.
.El .El

3
mv.c
View File

@ -28,7 +28,7 @@ mv(const char *s1, const char *s2, char ff)
static void static void
usage(void) usage(void)
{ {
eprintf("usage: %s [-f | -i] source... dest\n", argv0); eprintf("usage: %s [-f] source... dest\n", argv0);
} }
int int
@ -38,7 +38,6 @@ main(int argc, char *argv[])
ARGBEGIN { ARGBEGIN {
case 'f': case 'f':
case 'i':
break; break;
default: default:
usage(); usage();