makerspace / memberbooth

Displaying member info on a public machine
2 stars 0 forks source link

Development flag defaults #43

Closed emanuelen5 closed 4 years ago

emanuelen5 commented 4 years ago

Solves #42 by making --development flag to set several attributes at once in the argparse.Namespace object. It also adds the required --use-... flags to assert options that had been deasserted by the --development flag. E.g. ./memberbooth --development --use-printer would make the program to actually use the printer, even though the --development flag set it to not to.

emanuelen5 commented 4 years ago

Closes #42

InMyOrbit commented 4 years ago

Help text is:

--no-backend, --use-backend Whether to use real backend or fake requests (default: True) --no-printer, --use-printer Whether to use real label printer or save label to file instead (default: True)

What does (default: True) mean?

emanuelen5 commented 4 years ago

Help text is:

--no-backend, --use-backend Whether to use real backend or fake requests (default: True) --no-printer, --use-printer Whether to use real label printer or save label to file instead (default: True)

What does (default: True) mean?

Good point. I will change the help description to make it more clear. I might also be able to change the "default" text - will look into it.