louib 04360ed552 CLI Command cleanup
This PR cleans up the `Command` classes in the CLI, introducing a
`DatabaseCommand` class for the commands operating on a database,
and a `getCommandLineParser` command to centralize the arguments
parsing and validation.

The opening of the database based on the CLI arguments and options
is now centralized in `DatabaseCommand.execute`, making it easy to
add new database opening features (like YubiKey support for the CLI).

Also a couple of bugs fixed:
  * `Create` was still using `stdout` for some error messages.
  * `Diceware` and `Generate` were not validating that the word count was an integer.
  * `Diceware` was also using `stdout` for some error messages.
2019-06-14 18:15:38 -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-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-05-29 09:24:22 -04:00
2019-05-29 09:24:22 -04:00
CLI Command cleanup
2019-06-14 18:15:38 -04:00
2019-03-24 09:23:26 -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
2019-03-19 18:56:17 -04:00
2019-02-01 17:03:28 -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