sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 8d53fc9a79d61b6c4468e39455d5c4642e92336a
parent bf5f6a08a41474a219fe7cd86c30df6d7c5de0c7
Author: sin <sin@2f30.org>
Date:   Thu, 19 Feb 2015 14:54:12 +0000

rm: Remove -i from usage and manpage

We do not support it so do not lie to the user.

Diffstat:
Mrm.1 | 8++++----
Mrm.c | 5+----
2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/rm.1 b/rm.1 @@ -1,4 +1,4 @@ -.Dd January 30, 2015 +.Dd February 19, 2015 .Dt RM 1 .Os sbase .Sh NAME @@ -6,7 +6,7 @@ .Nd remove directory entries .Sh SYNOPSIS .Nm -.Op Fl f | Fl i +.Op Fl f .Op Fl Rr .Ar file ... .Sh DESCRIPTION @@ -22,8 +22,8 @@ or is specified. .Sh OPTIONS .Bl -tag -width Ds -.It Fl f | Fl i -Do not prompt | Prompt before removing +.It Fl f +Do not prompt before removing. .Ar file . In the former case, do not report when .Ar file diff --git a/rm.c b/rm.c @@ -5,7 +5,7 @@ static void usage(void) { - eprintf("usage: %s [-f | -i] [-Rr] file ...\n", argv0); + eprintf("usage: %s [-f] [-Rr] file ...\n", argv0); } int @@ -15,9 +15,6 @@ main(int argc, char *argv[]) case 'f': rm_fflag = 1; break; - case 'i': - rm_fflag = 0; - break; case 'R': case 'r': rm_rflag = 1;