Skip to content

Commit

Permalink
style: Rename CLI option and update its help
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay-Lysenko committed Feb 25, 2024
1 parent bd5cf75 commit 99d10ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readingbricks/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def parse_cli_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description='Flask app for reading and searching notes')
parser.add_argument(
'-c', '--config_path', type=str, default=None,
help='path to configuration file'
help="path to configuration file"
)
parser.add_argument(
'-r', '--use_existing_resources', action=argparse.BooleanOptionalAction,
help='if this flag is passed, resources are not generated'
'-f', '--fast_launch', action=argparse.BooleanOptionalAction,
help="flag whether valid resources already exist and so there is no need to generate them"
)
cli_args = parser.parse_args()
return cli_args
Expand All @@ -37,7 +37,7 @@ def main() -> None:
cli_args = parse_cli_args()
if cli_args.config_path is not None:
app.config.from_file(cli_args.config_path, load=json.load)
if not cli_args.use_existing_resources:
if not cli_args.fast_launch:
make_resources(
app.config.get("NOTES_DIR"),
app.config.get("RESOURCES_DIR"),
Expand Down

0 comments on commit 99d10ee

Please sign in to comment.