Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

mishandles options with required arguments #16

Closed
jimparis opened this Issue · 3 comments

2 participants

@jimparis

With this program:

#!/usr/bin/env python
import argparse
import argcomplete
def c_url(prefix, parsed_args, **kwargs):
    return [ "http://url1", "http://url2" ]
parser = argparse.ArgumentParser()
parser.add_argument("--url", help="URL").completer = c_url
argcomplete.autocomplete(parser)
args = parser.parse_args()

Argument --url requires a single non-option argument, but:

./test.py --url <tab>
expect: http://url1 http://url2
actual: --help --url -h http://url1 http://url2
@kislyuk kislyuk closed this in 291a667
@jimparis

This doesn't seem to be fixed. The test script gives the same results...

@kislyuk kislyuk reopened this
@kislyuk
Owner

oops, I got carried away into fixing something else while looking at this behavior, and forgot what the bug was originally about.

@kislyuk kislyuk closed this in 8389014
@jimparis

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.