Skip to content

Accept vic3 format alias for save commands#56

Merged
nickbabcock merged 2 commits into
rakaly:masterfrom
Symmetricity:fix/vic3-format-alias
Jun 15, 2026
Merged

Accept vic3 format alias for save commands#56
nickbabcock merged 2 commits into
rakaly:masterfrom
Symmetricity:fix/vic3-format-alias

Conversation

@Symmetricity

Copy link
Copy Markdown
Contributor

Summary

Accept vic3 anywhere the CLI help already documents it as a valid --format value.

This fixes a mismatch where melt --format vic3 and watch --format vic3 failed during argument parsing even though the help text listed vic3. The existing v3 extension spelling remains supported.

Validation

  • rustfmt --check src/melt.rs src/watch.rs
  • cargo test vic3_format_aliases_parse
  • cargo test --bins
  • Local real-save smoke test: cargo run --quiet -- melt --format vic3 --unknown-key ignore --out ... Qing_Start.v3

Full integration tests were not run locally because this checkout does not include the private token assets that upstream CI injects.

AI assistance: implementation and PR description were materially assisted by Codex.

Symmetricity and others added 2 commits June 14, 2026 12:07
The melt command documents vic3 as a valid --format value, but only the v3 extension alias parsed successfully. This made explicit Vic3 melting fail before the save file was read.

Keep v3 working and accept vic3 so the documented option reaches the existing Vic3 melter.

Co-authored-by: Codex <noreply@openai.com>
The watch command help documents vic3 as a valid --format value, but the parser only accepted the v3 file extension spelling.

Accept the documented alias while keeping v3 extension inference unchanged.

Co-authored-by: Codex <noreply@openai.com>
@Symmetricity Symmetricity marked this pull request as ready for review June 14, 2026 10:18
@nickbabcock nickbabcock merged commit 7f1dc7f into rakaly:master Jun 15, 2026
1 of 5 checks passed
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