Skip to content

Fix --meta argument help text and default in hydro CLI#1268

Open
ecopony wants to merge 2 commits intoRiverscapes:devfrom
ecopony:fix/hydro-meta-help-text
Open

Fix --meta argument help text and default in hydro CLI#1268
ecopony wants to merge 2 commits intoRiverscapes:devfrom
ecopony:fix/hydro-meta-help-text

Conversation

@ecopony
Copy link
Copy Markdown

@ecopony ecopony commented Jan 15, 2026

Summary

Fix --meta argument default and help text in hydro CLI

Problem

The default value of '{}' caused parse_metadata() to fail when --meta was not provided:

Exception: Error parsing command line metadata: {}

The function expects comma-separated key=value pairs, not JSON.

Fix

  • Removed the invalid default value
  • Updated help text to correctly describe the expected format

Use computed temp_folder variable instead of args.temp_folder in non-debug code path. When the flag is omitted, args.temp_folder is None, but temp_folder defaults to output_dir/temp.
The default value of '{}' would cause parse_metadata() to fail when --meta was not provided. Updated help text to correctly describe the expected format: comma-separated key=value pairs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants