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

Fix magic with arguments that have a dash #6

Merged
merged 2 commits into from Feb 19, 2021

Conversation

johnscillieri
Copy link
Contributor

I'd like to be able to support arguments that look like this:

-a --argument-name This is the argument to test

This PR enables dot access as before but converts the name to arguments.argument_name.

Allow users to do magic with an argument like --arg-name and convert it to args.arg_name
@codecov-io
Copy link

codecov-io commented Oct 14, 2019

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines         490    490           
=====================================
  Hits          490    490
Impacted Files Coverage Δ
docopt.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbed40a...05790ef. Read the comment docs.

@itdaniher itdaniher merged commit cbf1e8b into jazzband:master Feb 19, 2021
@itdaniher
Copy link
Contributor

screaming

sorry - 2019 was a mess, and it legit took me until half through 2021 to get online again. Thanks for the PR! Merged!

@johnscillieri
Copy link
Contributor Author

oh dang, welcome back! No worries, I'm just glad it's in!!

I may support/submit a few others now as well, thanks for the help!

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

3 participants