invoice-x / factur-x-ng

Python lib for Factur-X, the e-invoicing standard for France and Germany
Other
34 stars 8 forks source link

Implement command line options #3

Closed m3nu closed 6 years ago

m3nu commented 6 years ago

The README has some multi-level CLI commands outlined. Those need implementing.

duskybomb commented 6 years ago

Should I use optparse (used in original repo) or argparse for command line options?

EDIT: Oh optparse is deprecated.

duskybomb commented 6 years ago

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