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

Use argparse intermixed args if possible #122

Merged
merged 2 commits into from
Jun 20, 2019
Merged

Conversation

wxtim
Copy link
Contributor

@wxtim wxtim commented Mar 8, 2019

I've removed a few things that have come to light in creating the new wrapper for rose-date:

  1. Removed references to -c

  2. Added = signs to --offset options since --offset -PT2H doesn't work with Argparse. Apparently Argparse doesn't like anything it doesn't think is a number being passed like this and ISO-Datetime-offsets aren't sufficiently number-like. 😞

  3. Make argparse cope with intermixed args and options (at least at python 3.7).

isodatetime/main.py Outdated Show resolved Hide resolved
isodatetime/main.py Outdated Show resolved Hide resolved
@matthewrmshin
Copy link
Member

@wxtim Tests are failing.

@wxtim
Copy link
Contributor Author

wxtim commented Jun 20, 2019

@matthewrmshin Tests passing

@matthewrmshin
Copy link
Member

1 review good enough for this.

@matthewrmshin matthewrmshin merged commit 9a1b66b into master Jun 20, 2019
@matthewrmshin matthewrmshin deleted the ARGPARSE_DOC_FIX branch June 20, 2019 11:28
@matthewrmshin matthewrmshin changed the title Small Documentation fixes Use argparse intermixed args if possible Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants