New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement command line options #3

Closed
m3nu opened this Issue May 15, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@m3nu
Collaborator

m3nu commented May 15, 2018

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

@duskybomb

This comment has been minimized.

Show comment
Hide comment
@duskybomb

duskybomb Jun 9, 2018

Collaborator

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

EDIT: Oh optparse is deprecated.

Collaborator

duskybomb commented Jun 9, 2018

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

EDIT: Oh optparse is deprecated.

@duskybomb

This comment has been minimized.

Show comment
Hide comment
@duskybomb

duskybomb Jun 10, 2018

Collaborator

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
Collaborator

duskybomb commented Jun 10, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment