Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove nc from descriptions of OPS files
(since files can also be .db)
  • Loading branch information
dwhswenson committed Sep 2, 2021
commit 7a9d041fa40720586a99609c559e92e7f972ef28
8 changes: 4 additions & 4 deletions paths_cli/commands/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@

@click.command(
'contents',
short_help="list named objects from an OPS .nc file",
short_help="list named objects from an OPS output file",
Comment thread
dwhswenson marked this conversation as resolved.
Outdated
)
@INPUT_FILE.clicked(required=True)
@click.option('--table', type=str, required=False,
help="table to show results from")
def contents(input_file, table):
"""List the names of named objects in an OPS .nc file.
"""List the names of named objects in an OPS output file.
Comment thread
dwhswenson marked this conversation as resolved.
Outdated

This is particularly useful when getting ready to use one of simulation
scripts (i.e., to identify exactly how a state or engine is named.)
This is particularly useful when getting ready to use a simulation
command (i.e., to identify exactly how a state or engine is named.)
"""
storage = INPUT_FILE.get(input_file)
print(storage)
Expand Down
2 changes: 1 addition & 1 deletion paths_cli/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
OUTPUT_FILE = StorageLoader(
param=Option('-o', '--output-file',
type=click.Path(writable=True),
help="output ncfile"),
help="output file"),
mode='w'
)

Expand Down