Skip to content

Commit

Permalink
ENH: Enforce existing files for relevant options in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Feb 15, 2022
1 parent 1c04e10 commit 12fd494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data_gateway/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ def gateway_cli(logger_uri, log_level):
)
@click.option(
"--config-file",
type=click.Path(dir_okay=False),
type=click.Path(dir_okay=False, exists=True),
default="config.json",
show_default=True,
help="Path to your Aerosense deployment configuration JSON file.",
)
@click.option(
"--routine-file",
type=click.Path(dir_okay=False),
type=click.Path(dir_okay=False, exists=True),
default="routine.json",
show_default=True,
help="Path to sensor command routine JSON file.",
Expand Down Expand Up @@ -181,7 +181,7 @@ def start(
@gateway_cli.command()
@click.option(
"--config-file",
type=click.Path(),
type=click.Path(dir_okay=False, exists=True),
default="configuration.json",
help="A path to a JSON configuration file.",
)
Expand Down Expand Up @@ -243,7 +243,7 @@ def create_installation(config_file):
@gateway_cli.command()
@click.option(
"--config-file",
type=click.Path(),
type=click.Path(dir_okay=False, exists=True),
default="config.json",
show_default=True,
help="Path to your Aerosense deployment configuration file.",
Expand Down

0 comments on commit 12fd494

Please sign in to comment.