Skip to content

Commit

Permalink
docs(cli): Rename dataset_path arg to dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley authored and johnkit committed Apr 30, 2024
1 parent 7f6be7c commit 1dd1c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run the application

.. code-block:: console
pan3d-viewer --dataset_path /path/to/directory.zarr
pan3d-viewer --dataset=/path/to/directory.zarr
Requires
Expand Down
4 changes: 2 additions & 2 deletions pan3d/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def main():
)

parser.add_argument("-C", "--config_path")
parser.add_argument("-D", "--dataset_path")
parser.add_argument("-D", "--dataset")
parser.add_argument("-P", "--pangeo", action=BooleanOptionalAction)
parser.add_argument("-S", "--server", action=BooleanOptionalAction)

args = parser.parse_args()

builder = DatasetBuilder(dataset_path=args.dataset_path, pangeo=args.pangeo)
builder = DatasetBuilder(dataset_path=args.dataset, pangeo=args.pangeo)
if args.config_path:
builder.import_config(args.config_path)
builder.viewer.server.start()
Expand Down

0 comments on commit 1dd1c30

Please sign in to comment.