Closed casperdcl closed 4 years ago
add_argument(dest, choices=shtab.DIR, metavar=dest)
metavar
dest
{}
shtab.DIR = list(shtab.Choice("directory"))
add_argument(dest).complete = shtab.DIR
shtab.DIR = {"zsh": "_files", "bash": "compgen -d -S '/' --"}
add_argument(dest, choices=shtab.DIR, metavar=dest)
metavar
required to stopdest
being wrapped in{}
shtab.DIR = list(shtab.Choice("directory"))
add_argument(dest).complete = shtab.DIR
shtab.DIR = {"zsh": "_files", "bash": "compgen -d -S '/' --"}