louib eb1882453f CLI password generation options cleanup (#3275)
Summary of changes:
* Extract function for creating password generator from options into
`Generate` command. This function is now reused in `Add` and `Edit`
commands.
* Updated manpage with missing password generation options.
* Updated manpage with missing longer forms of password generation options.
* Added unit tests for new password generation options in `Add` and
`Edit`.
* Handle case when `-g` and `-p` options are used at the same time.

This PR adds password generation functionalities while reducing
code duplication, but at the cost of 2 small breaking changes:
* The password generation option for `Add` and `Edit` for specifying
password length is now `-L` instead of `-l`, to not clash with the
`-l --lower` option.
* The `-u` shorthand for the `--upper` option has to be removed, to not
clash with the `-u --username` option.
* Add -U variant for uppercase.
2019-08-30 22:50:32 -04:00
..
2018-11-28 18:29:15 -05:00
2018-12-18 22:28:56 -05:00
2018-11-28 18:29:15 -05:00
2018-03-31 16:01:30 -04:00
2015-09-12 13:55:50 +02:00
2017-10-21 13:15:02 +02:00
2019-06-18 18:51:38 -04:00
2019-05-29 09:24:22 -04:00
2018-11-28 18:29:15 -05:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00
2018-11-28 18:29:15 -05:00
2018-03-31 16:01:30 -04:00
2019-05-19 18:21:34 -04:00
2018-11-28 18:29:15 -05:00
2018-12-18 22:28:56 -05:00
2018-05-22 09:28:54 +02:00
2019-04-11 08:52:51 -04:00
2019-03-19 18:56:17 -04:00
2018-03-31 16:01:30 -04:00