Closed m3nu closed 6 years ago
Should I use optparse
(used in original repo) or argparse
for command line options?
EDIT: Oh optparse is deprecated.
Made my first commit for this feature in branch issue/3
$ (venv) D:\GSoC\factur-x>facturx -h
usage: facturx [-h] {dump,validate,add,extract} ...
PDF invoice with embedded XML metadata following the Factur-X standard
positional arguments:
{dump,validate,add,extract}
sub-command help
dump dump xml meta data to xml|json, takes two arguments
validate validate xml meta data from pdf invoice
add add xml meta data to pdf invoice from external xml
file
extract extract fields from pdf invoice and embed them
optional arguments:
-h, --help show this help message and exit
The README has some multi-level CLI commands outlined. Those need implementing.