Skip to content

extra spaces change behavior #21

jimparis opened this Issue Mar 16, 2013 · 0 comments

2 participants


With this program:

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

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

$ ./␣<tab>
--get --help -h
$ ./␣␣<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.