brucify and add comment about -v being non-standard to manpage
Reviewed by: obrien
This commit is contained in:
parent
b0c80ddb89
commit
0cae029984
@ -43,9 +43,8 @@
|
||||
.Nd make directories
|
||||
.Sh SYNOPSIS
|
||||
.Nm mkdir
|
||||
.Op Fl p
|
||||
.Op Fl pv
|
||||
.Op Fl m Ar mode
|
||||
.Op Fl v
|
||||
.Ar directory_name ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm Mkdir
|
||||
@ -89,6 +88,10 @@ The
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh SEE ALSO
|
||||
.Xr rmdir 1
|
||||
.Sh COMPATIBILITY
|
||||
The
|
||||
.Fl v
|
||||
option is non-standard and its use in scripts is not recommended.
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm
|
||||
|
@ -74,15 +74,15 @@ main(argc, argv)
|
||||
mode = NULL;
|
||||
while ((ch = getopt(argc, argv, "m:pv")) != -1)
|
||||
switch(ch) {
|
||||
case 'm':
|
||||
mode = optarg;
|
||||
break;
|
||||
case 'p':
|
||||
pflag = 1;
|
||||
break;
|
||||
case 'v':
|
||||
vflag = 1;
|
||||
break;
|
||||
case 'm':
|
||||
mode = optarg;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
usage();
|
||||
@ -203,6 +203,7 @@ build(path, omode)
|
||||
void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: mkdir [-p] [-m mode] [-v] directory ...\n");
|
||||
|
||||
(void)fprintf(stderr, "usage: mkdir [-pv] [-m mode] directory ...\n");
|
||||
exit (EX_USAGE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user