|
6 | 6 |
|
7 | 7 | controls = sn( |
8 | 8 | json_dir=sn( |
9 | | - args=['-d', '--json-dir', '--json-folder'], |
10 | | - type=str, default_val='_locales', help='Name of the folder containing JSON files (default: "_locales")' |
11 | | - ), |
| 9 | + args=['-d', '--json-dir', '--json-folder'], type=str, default_val='_locales'), |
12 | 10 | keys=sn( |
13 | | - args=['-k', '--keys', '--remove-keys', '--delete-keys'], |
14 | | - type=str, parser='csv', help='Keys to remove (e.g. "app_NAME,author")' |
15 | | - ), |
| 11 | + args=['-k', '--keys', '--remove-keys', '--delete-keys'], type=str, parser='csv'), |
16 | 12 | init=sn( |
17 | | - args=['-i', '--init'], |
18 | | - action='store_true', subcmd='true', help='Create .remove-json.config.json5 file to store default options' |
19 | | - ), |
| 13 | + args=['-i', '--init'], action='store_true', subcmd='true'), |
20 | 14 | force=sn( |
21 | | - args=['-f', '--force', '--overwrite'], |
22 | | - action='store_true', help='Force overwrite existing config file when using init' |
23 | | - ), |
| 15 | + args=['-f', '--force', '--overwrite'], action='store_true'), |
24 | 16 | no_wizard=sn( |
25 | | - args=['-n', '-W', '--no-wizard', '--skip-wizard'], |
26 | | - action='store_true', default=None, help='Skip interactive prompts during start-up' |
27 | | - ), |
| 17 | + args=['-n', '-W', '--no-wizard', '--skip-wizard'], action='store_true', default=None), |
28 | 18 | help=sn( |
29 | | - args=['-h', '--help'], |
30 | | - action='help', help='Show help screen' |
31 | | - ), |
| 19 | + args=['-h', '--help'], action='help'), |
32 | 20 | debug=sn( |
33 | | - args=['--debug'], |
34 | | - nargs='?', const=True, help='Show debug logs' |
35 | | - ) |
| 21 | + args=['--debug'], nargs='?', const=True) |
36 | 22 | ) |
37 | 23 |
|
38 | 24 | def load(cli, caller_file): |
|
0 commit comments