aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-shtab/pkg-descr
blob: 2deb1de0f400b63fedccb3ff55f8b960e67ffdb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
What: Automatically generate shell tab completion scripts for Python CLI apps
Why: Speed & correctness. Alternatives like argcomplete and pyzshcomplete are
slow and have side-effects
How: shtab processes an argparse.ArgumentParser object to generate a tab
completion script for your shell

Features:
- Outputs tab completion scripts for
  - bash
  - zsh
  - tcsh
- Supports
  - argparse
  - docopt (via argopt)
- Supports arguments, options and subparsers
- Supports choices (e.g. --say={hello,goodbye})
- Supports file and directory path completion
- Supports custom path completion (e.g. --file={*.txt})