Skip to content

Add --defaults and --help flags to configure.sh#9

Merged
schultzjim merged 2 commits intomainfrom
feature/non-interactive-flags
Mar 13, 2026
Merged

Add --defaults and --help flags to configure.sh#9
schultzjim merged 2 commits intomainfrom
feature/non-interactive-flags

Conversation

@schultzjim
Copy link
Copy Markdown

Summary

  • Add --defaults flag: opts into using default values for any option not explicitly set by a flag (no prompting)
  • Add --help flag: prints usage information and exits
  • Replace implicit has_any_flags() behavior — flags without --defaults now only pre-fill their specific option while still prompting for everything else
  • Add expect-based interactive tests to verify prompt behavior
  • Update existing tests to use --defaults

Context

Addresses feedback from @adam-fowler on upstream PR hummingbird-project/template#25.

Closes #8

Test plan

  • All 71 tests pass (bash scripts/test_configure.sh)
  • Review --defaults behavior: ./configure.sh ./test --defaults uses all defaults, no prompts
  • Review --defaults + flags: ./configure.sh ./test --defaults --openapi enables openapi, defaults everything else
  • Review flag without --defaults: ./configure.sh ./test --openapi prompts for everything except openapi
  • Review --help: ./configure.sh --help prints usage and exits
  • Verify no regression on fully interactive mode (no flags at all)

🤖 Generated with Claude Code

Replace implicit has_any_flags() behavior with explicit --defaults flag.
Without --defaults, flags only pre-fill their specific option while still
prompting interactively for everything else. Add --help for usage info.

Add expect-based interactive tests to verify prompt behavior.

Closes #8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@schultzjim schultzjim force-pushed the feature/non-interactive-flags branch from 1d64c69 to e238969 Compare March 13, 2026 14:48
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@schultzjim schultzjim merged commit 5c626f6 into main Mar 13, 2026
1 check 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.

Add --defaults and --help flags to configure.sh

1 participant