Refactor the code used to manage command line parameters
rafaelma opened this issue · comments
use argparse to manage parameters defined when running pgbackman
Comitted in 772a481
pgbackman --help
usage: /usr/bin/pgbackman [-h]
[--output [csv|json|plain]]
[--command <PgBackMan command>]
optional arguments:
-h, --help show this help message and exit
--output [csv|json|plain], -o [csv|json|plain]
--command <PgBackMan command>, -C <PgBackMan command>
pgbackman --help
usage: /usr/bin/pgbackman [-h]
[--output [csv|json]]
[--command <PgBackMan command>]
optional arguments:
-h, --help show this help message and exit
--output [csv|json|plain], -o [csv|json]
--command <PgBackMan command>, -C <PgBackMan command>