Adding ARGBEGIN for basename.
This commit is contained in:
15
basename.1
15
basename.1
@@ -3,6 +3,10 @@
|
||||
basename \- strip leading path component
|
||||
.SH SYNOPSIS
|
||||
.B basename
|
||||
.RB [ \-a ]
|
||||
.RB [ \-z ]
|
||||
.RB [ \-s
|
||||
.IR suffix ]
|
||||
.I string
|
||||
.RI [ suffix ]
|
||||
.SH DESCRIPTION
|
||||
@@ -12,6 +16,17 @@ prints the
|
||||
with any leading path components, and the
|
||||
.IR suffix ,
|
||||
removed.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BI \-a
|
||||
multiple arguments will each be treated as strings
|
||||
.TP
|
||||
.BI \-s " suffix"
|
||||
specifies the suffix that should be removed
|
||||
.TP
|
||||
.BI \-z
|
||||
output will be separated with NUL
|
||||
.TP
|
||||
.SH SEE ALSO
|
||||
.IR dirname (1),
|
||||
.IR basename (3)
|
||||
|
Reference in New Issue
Block a user