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

Allow negative floats and integers fix #397 #416

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Allow negative floats and integers fix #397 #416

wants to merge 2 commits into from

Conversation

pilattebe
Copy link

@pilattebe pilattebe commented May 19, 2018

Usage:
      mystuff <x> <y>

now accepts mystuff -22 -3.141592

One consequence is that it bans the use of :

Usage:
        mystuff -1
Options:
        -1      This is totally a valid option but what is the use case ?

I added some tests for it

pilattebe and others added 2 commits May 19, 2018 19:05
THIS IS MY FIRST COMMIT EVER {help please}
```
Usage:
      mystuff <x> <y>
```
now accepts `mystuff -2 -4.9`
One consequence is that it bans the use of :
```
Usage:
        mystuff -10
Options:
        -10      This is totally a valid option but what is the use case ?
```
@itdaniher
Copy link

Merged at bazaar-projects@9637d18 - thanks!

@pilattebe
Copy link
Author

After thinking about this, I think there should be an option like:

docopt(__doc__, allow_negatives=True)

If someone wants to do it it looks quite easy.

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.

None yet

2 participants