rm: Remove -i from usage and manpage
We do not support it so do not lie to the user.
This commit is contained in:
parent
bf5f6a08a4
commit
8d53fc9a79
8
rm.1
8
rm.1
|
@ -1,4 +1,4 @@
|
||||||
.Dd January 30, 2015
|
.Dd February 19, 2015
|
||||||
.Dt RM 1
|
.Dt RM 1
|
||||||
.Os sbase
|
.Os sbase
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
.Nd remove directory entries
|
.Nd remove directory entries
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl f | Fl i
|
.Op Fl f
|
||||||
.Op Fl Rr
|
.Op Fl Rr
|
||||||
.Ar file ...
|
.Ar file ...
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
|
@ -22,8 +22,8 @@ or
|
||||||
is specified.
|
is specified.
|
||||||
.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 removing
|
Do not prompt before removing.
|
||||||
.Ar file .
|
.Ar file .
|
||||||
In the former case, do not report when
|
In the former case, do not report when
|
||||||
.Ar file
|
.Ar file
|
||||||
|
|
5
rm.c
5
rm.c
|
@ -5,7 +5,7 @@
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
eprintf("usage: %s [-f | -i] [-Rr] file ...\n", argv0);
|
eprintf("usage: %s [-f] [-Rr] file ...\n", argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -15,9 +15,6 @@ main(int argc, char *argv[])
|
||||||
case 'f':
|
case 'f':
|
||||||
rm_fflag = 1;
|
rm_fflag = 1;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
|
||||||
rm_fflag = 0;
|
|
||||||
break;
|
|
||||||
case 'R':
|
case 'R':
|
||||||
case 'r':
|
case 'r':
|
||||||
rm_rflag = 1;
|
rm_rflag = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user