We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c9ed6 commit c3daaf0Copy full SHA for c3daaf0
examples/pathcomplete.py
@@ -12,10 +12,11 @@
12
13
def get_main_parser():
14
parser = argparse.ArgumentParser(prog="pathcomplete")
15
- shtab.add_argument_to(parser, ["-s", "--print-completion"]) # magic!
+ shtab.add_argument_to(parser, ["-s", "--print-completion"]) # magic!
16
17
# file & directory tab complete
18
- parser.add_argument("file", nargs="?").complete = shtab.FILE
+ parser.add_argument("file_all", nargs="?").complete = shtab.FILE
19
+ parser.add_argument("file_md", nargs="?").complete = shtab.fglob('*.md')
20
parser.add_argument("--dir", default=".").complete = shtab.DIRECTORY
21
return parser
22
0 commit comments