Hey!
Thanks for a really good package.
We are now using it for one of our internal tools.
This is not a bug report, but some proposals for improvements, that we think would make the package even better.
-
Add an api option to only allow exact matching of options.
Right now we have an option --compress_lzss. If you type --compress at the command line, it will be interpreted as --compress_lzss, since no other option starts with --compress.
But later on we will also add an option --compress_proprietary. If you then have created scripts to run the CLI, containing --compress, then will then stop to work.
So therefore we would like to only accept options if they are completely right entered.
-
Give a message "Unknown Command" when an unknown command is entered (Just as for unknown options)
Usage: pie.py get --opt1=O1 --opt2=O2
But when I give argv as:
it give the result:
Usage: pie.py get --opt1=O1 --opt2=O2
Usage: pie.py get --opt1=O1 --opt2=O2
And when I give argv as:
it give the result:
Unknown option: --optt1.
Usage: pie.py get --opt1=O1 --opt2=O2
3. **Give an error message if two or more "this|or|that" parameters are entered at the same time**
Now it is only showing "usage: "
Usage: pie.py create (--opt1=O1 | --opt2=O2)
create --opt1 1 --opt2 2
Usage: pie.py create (--opt1=O1 | --opt2=O2)
Please respond if you think this is something to add or not.
Best Regards, Pernilla
`docpie` version: 0.3.6 / Sat Jul 1 01:54:16 2017
Hey!
Thanks for a really good package.
We are now using it for one of our internal tools.
This is not a bug report, but some proposals for improvements, that we think would make the package even better.
Add an api option to only allow exact matching of options.
Right now we have an option --compress_lzss. If you type --compress at the command line, it will be interpreted as --compress_lzss, since no other option starts with --compress.
But later on we will also add an option --compress_proprietary. If you then have created scripts to run the CLI, containing --compress, then will then stop to work.
So therefore we would like to only accept options if they are completely right entered.
Give a message "Unknown Command" when an unknown command is entered (Just as for unknown options)
But when I give argv as:
it give the result:
And when I give argv as:
it give the result:
Usage: pie.py create (--opt1=O1 | --opt2=O2)
create --opt1 1 --opt2 2
Usage: pie.py create (--opt1=O1 | --opt2=O2)