Skip to content

CLI: dump flags replace its defaults, so dump -nc works (#99) - #123

Merged
DraTeots merged 1 commit into
v2-mainfrom
fix-99-dump-flags
Nov 3, 2026
Merged

DraTeots merged 1 commit into
v2-mainfrom
fix-99-dump-flags

Conversation

@DraTeots

@DraTeots DraTeots commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

ccdb dump is cat --no-borders --no-header --comments --horizontal plus the user's arguments, so dump -nc gave cat two contradicting flags. dump now adds each default only when the user named neither flag of its pair (borders, header, comments, orientation); arguments are passed on quoted.

Tests: test_dump_flags_override_defaults, test_dump_cat_flags in integ_test_cli_manager (45 tests pass).

Closes #99

🤖 Generated with Claude Code

`dump` is `cat --no-borders --no-header --comments --horizontal` plus the user's arguments, so `dump -nc` gave cat
both --comments and --no-comments and argparse refused. dump now adds a default only when the user named neither
flag of its pair; the arguments are passed on quoted. Help text says so.

Closes #99

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DraTeots
DraTeots merged commit d452c35 into v2-main Nov 3, 2026
50 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.

"ccdb dump -nc" does not work but "ccdb cat -nc" does work

1 participant