Skip to content

extra spaces change behavior #21

Closed
jimparis opened this Issue Mar 16, 2013 · 0 comments

2 participants

@jimparis

With this program:

#!/usr/bin/env python
import argparse
import argcomplete
parser = argparse.ArgumentParser()
parser.add_argument("--get", action="store_true")
argcomplete.autocomplete(parser)
args = parser.parse_args()

The tab completion behaves differently when there are one vs. two blank spaces on the command line before pressing tab:

$ ./test.py␣<tab>
--get --help -h
$ ./test.py␣␣<tab>
(lists files in the current directory)

Minor issue and hopefully an easy fix.

@kislyuk kislyuk closed this in bc955b6 Mar 16, 2013
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.