File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def config_file(cli: sn) -> None: # for --init
2323 user_resp = input (f'{ cli .msgs .prompt_INIT_CONFIG_HERE_ANYWAY } ? (y/N): ' ).strip ().lower ()
2424 if not user_resp .startswith ('y' ) : return
2525 config_dir , in_project_root = Path .cwd (), False
26- target_path = config_dir / f'.{ cli .short_name } .config.json5'
26+ target_path = config_dir / f'.{ cli .short_name or cli . name } .config.json5'
2727
2828 # Handle existing file
2929 if target_path .exists ():
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def config_file(cli: sn) -> None: # for --init
2323 user_resp = input (f'{ cli .msgs .prompt_INIT_CONFIG_HERE_ANYWAY } ? (y/N): ' ).strip ().lower ()
2424 if not user_resp .startswith ('y' ) : return
2525 config_dir , in_project_root = Path .cwd (), False
26- target_path = config_dir / f'.{ cli .short_name } .config.json5'
26+ target_path = config_dir / f'.{ cli .short_name or cli . name } .config.json5'
2727
2828 # Handle existing file
2929 if target_path .exists ():
You can’t perform that action at this time.
0 commit comments