mv: Remove -i from usage and manpage
This commit is contained in:
parent
8d53fc9a79
commit
0e008fe349
8
mv.1
8
mv.1
|
@ -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
3
mv.c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user