Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Oct 9, 2024
1 parent 41ee2ed commit 522f63e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* Fix bug where logger setup failed
* Simplify CLI argument constructor code (for cleaner and more testable code)
* Add tests for CLI and implementations when invoked through the CLI
* Refactored code dealing with requests and authentication to the `requests.py` file
* Add `--log_file` command line option to specify a non-default location to write log files to
* Refactored code dealing with requests and authentication to the `STACpopulator/requests.py` file
* Add `--log-file` command line option to specify a non-default location to write log files to

## [0.6.0](https://github.com/crim-ca/stac-populator/tree/0.6.0) (2024-02-22)

Expand Down
2 changes: 1 addition & 1 deletion STACpopulator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def add_parser_args(parser: argparse.ArgumentParser) -> dict[str, Callable]:
)
parser.add_argument("--debug", action="store_const", const=logging.DEBUG, help="set logger level to debug")
parser.add_argument(
"--log_file", help="file to write log output to. By default logs will be written to the current directory."
"--log-file", help="file to write log output to. By default logs will be written to the current directory."
)
commands_subparser = parser.add_subparsers(
title="command", dest="command", description="STAC populator command to execute.", required=True
Expand Down
1 change: 1 addition & 0 deletions STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def runner(ns: argparse.Namespace) -> int:

def main(*args: str) -> int:
parser = argparse.ArgumentParser()
add_parser_args(parser)
ns = parser.parse_args(args or None)
return runner(ns)

Expand Down
2 changes: 1 addition & 1 deletion STACpopulator/implementations/DirectoryLoader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .crawl_directory import add_parser_args, runner
from STACpopulator.implementations.DirectoryLoader.crawl_directory import add_parser_args, runner

__all__ = ["add_parser_args", "runner"]

0 comments on commit 522f63e

Please sign in to comment.