Skip to content
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

Add required=True to image path argument in print subcommand #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YutongGu
Copy link

@YutongGu YutongGu commented Apr 14, 2021

Added required=True parameter to the Click 'image' argument in the print subcommand to ensure that the script does not continue forward with the print process when no file path is provided. Changes were verified by connecting to brother-ql 810W and running the following command and checking that it (correctly) fails:
sudo env PATH=$PATH ./cli.py -b pyusb -m QL-810W -p usb://0x04f9:0x209c --debug print -l 62
For regression testing, the command was attempted again with a valid file path and checked that the printer successfully prints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant