Changed man page to reflect new mandatory args

This commit is contained in:
Bob Polis 2022-06-11 23:09:01 +02:00
parent dde62454ea
commit 1bc1d939e4

20
pw.1
View File

@ -13,10 +13,10 @@
.Nm .Nm
.Fl \-version .Fl \-version
.Nm .Nm
.Op Fl d .Op Fl d Ar minimum-amount
.Op Fl l .Op Fl l Ar minimum-amount
.Op Fl u .Op Fl u Ar minimum-amount
.Op Fl s .Op Fl s Ar minimum-amount
.Op Fl S Ar set-of-symbols .Op Fl S Ar set-of-symbols
.Op Fl c Ar length .Op Fl c Ar length
.Sh DESCRIPTION .Sh DESCRIPTION
@ -25,7 +25,8 @@ The
command generates a random password and prints it on the standard output. command generates a random password and prints it on the standard output.
If no flags for specifying which characters are allowed are given, If no flags for specifying which characters are allowed are given,
.Nm .Nm
acts as if all had been specified. acts as if all had been specified, with minimum amounts of occurrences for all
types being zero.
.Pp .Pp
The options are as follows: The options are as follows:
.Bl -tag -width Ds .Bl -tag -width Ds
@ -35,18 +36,27 @@ Print help text and exit.
Print version info and exit. Print version info and exit.
.It Fl d, \-digit .It Fl d, \-digit
Allow digits. Allow digits.
An integer argument is expected, which should be zero or more, and indicates the
minimum amount of digits to be included.
.It Fl l, \-lower .It Fl l, \-lower
Allow lower case letters. Allow lower case letters.
An integer argument is expected, which should be zero or more, and indicates the
minimum amount of lower case letters to be included.
.It Fl u, \-upper .It Fl u, \-upper
Allow upper case letters. Allow upper case letters.
An integer argument is expected, which should be zero or more, and indicates the
minimum amount of upper case letters to be included.
.It Fl s, \-symbol .It Fl s, \-symbol
Allow symbols and punctuation from the following list: _-=+<>,.!@#$%^&*. Allow symbols and punctuation from the following list: _-=+<>,.!@#$%^&*.
An integer argument is expected, which should be zero or more, and indicates the
minimum amount of symbols to be included.
.It Fl S, \-special Ar set-of-symbols .It Fl S, \-special Ar set-of-symbols
Allow symbols from specified argument. Allow symbols from specified argument.
For example, specifying For example, specifying
.Fl S .Fl S
.Sq :-+@ .Sq :-+@
allows symbols :, -, + or @. allows symbols :, -, + or @.
The minimum amount will always be one when this option is given.
.It Fl c, \-count Ar length .It Fl c, \-count Ar length
Specify the password length. Specify the password length.
Default is 24 characters. Default is 24 characters.