@@ -11,17 +11,17 @@ def cli():
1111 description = "Remove key/value pairs from JSON files" ,
1212 add_help = False # disable default --help arg to re-create last
1313 )
14- argp .add_argument ('-k' , '--remove-keys' , type = str , help = 'Keys to remove (e.g. "appName,author")' )
1514 argp .add_argument ('-d' , '--json-dir' , '--json-folder' ,
1615 type = str , help = 'Name of the folder containing JSON files (default: "_locales")' )
16+ argp .add_argument ('-k' , '--keys' , '--remove-keys' , type = str , help = 'Keys to remove (e.g. "appName,author")' )
1717 argp .add_argument ('-W' , '--no-wizard' , '--skip-wizard' ,
1818 action = 'store_true' , default = None , help = 'Skip interactive prompts during start-up' )
1919 argp .add_argument ('-h' , '--help' , action = 'help' , help = "Show help screen" )
2020 cli .config = sns ()
2121 cli .config .__dict__ .update ({ key :val for key ,val in vars (argp .parse_args ()).items () if val is not None })
2222
2323 # Init cli.config vals
24- cli .config .remove_keys = data .csv .parse (getattr (cli .config , 'remove_keys ' , None ))
24+ cli .config .keys = data .csv .parse (getattr (cli .config , 'keys ' , None ))
2525 cli .config .json_dir = getattr (cli .config , 'json_dir' , '_locales' )
2626 cli .config .no_wizard = getattr (cli .config , 'no_wizard' , False )
2727
0 commit comments