1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
prog: crazy-complete-test
options:
- option_strings: ['--files']
- option_strings: ['--directories']
- option_strings: ['--complete']
complete: ['choices', ['file1', 'file2', 'file3']]
when: 'has_option --files'
- option_strings: ['--complete']
complete: ['choices', ['dir1', 'dir2', 'dir3']]
when: 'has_option --directories'
positionals:
- number: 1
complete: ['choices', ['file1', 'file2', 'file3']]
when: 'has_option --files'
- number: 1
complete: ['choices', ['dir1', 'dir2', 'dir3']]
when: 'has_option --directories'
|