Skip to content

Allow variable overwriting, exclude loop variables#31

Draft
BlakeASmith wants to merge 2 commits intomainfrom
cursor/allow-variable-overwriting-exclude-loop-variables-abe9
Draft

Allow variable overwriting, exclude loop variables#31
BlakeASmith wants to merge 2 commits intomainfrom
cursor/allow-variable-overwriting-exclude-loop-variables-abe9

Conversation

@BlakeASmith
Copy link
Contributor

Allow overriding top-level script-defined variables via CLI arguments, using their script values as defaults.


Open in Cursor Open in Web

Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
@cursor
Copy link

cursor bot commented Aug 26, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on September 9, 2025
Learn more in the Cursor dashboard.

assert rc == 0
out = capsys.readouterr().out
assert "(default from script: false)" in out or "(default from script: true)" in out
assert "(default from script: 30)" in out No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Test Fails to Enforce Strict Boolean Default Handling

The test_defined_defaults_help_shows_script_defaults test's assertion for the DEBUG variable is overly permissive. Since the script explicitly sets DEBUG=false, the help output should strictly show (default from script: false). Accepting true as well could mask issues with how boolean default values are parsed or displayed.

Fix in Cursor Fix in Web

Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
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