Skip to content

Improvement proposals #7

Description

@pborglin

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.

  1. 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.

  2. 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:

gett --opt1 ds --opt2 ds

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:

get --optt1 ds --opt2 ds

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)

But when I give argv as: 

create --opt1 1 --opt2 2

it give the result:

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions