Adding ARGBEGIN for basename.

This commit is contained in:
Christoph Lohmann
2012-04-23 15:50:47 +02:00
parent 96b15a5afa
commit f75d7a47ff
4 changed files with 97 additions and 13 deletions

View File

@@ -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)