Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #164 +/- ##
=======================================
Coverage 88.88% 88.88%
=======================================
Files 3 3
Lines 360 360
=======================================
Hits 320 320
Misses 40 40 ☔ View full report in Codecov by Sentry. |
Collaborator
Author
|
/CC @usidedown does this work for you? pip install "git+https://github.com/iterative/shtab.git@double-dash#egg=shtab" |
e780830 to
2664271
Compare
2664271 to
3d583e0
Compare
|
Awesome, thanks for the quick response! I'm getting a slight weirdness. Here's my example: import argparse
def get_parser():
parser = argparse.ArgumentParser()
parser.add_argument('--opt1', choices=['a','b'])
parser.add_argument('pos1', type=int, choices=list(range(8)))
parser.add_argument('pos2', type=int, choices=list(range(4)))
parser.add_argument('pos3', type=int, choices=list(range(2)))
return parser
def main():
parser = get_parser()
print(parser.parse_args())
if __name__ == '__main__':
main()my completion commandline: eval "$(shtab src.test.get_parser --prog=foo --shell=bash)"If I do the regular foo 6 4 <tab>I get foo -- 6 4 <tab>I get |
3d583e0 to
b032228
Compare
Collaborator
Author
|
try now? |
Looks good! |
- fixes #163
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
diffsans whitespace