Skip to content

fix(cli): allow empty strings and falsy values in config set#4310

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-eaa694be
Mar 31, 2026
Merged

fix(cli): allow empty strings and falsy values in config set#4310
teknium1 merged 1 commit into
mainfrom
hermes/hermes-eaa694be

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #4301 by @dsr-restyn cherry-picked onto current main.

hermes config set KEY "" was printing usage and exiting instead of setting the value. The guard not value is truthy for "", "0", and False. Changed to value is None so only a genuinely missing argument (argparse default) is rejected.

Closes #4277

`hermes config set KEY ""` and `hermes config set KEY 0` were rejected
because the guard used `not value` which is truthy for empty strings,
zero, and False. Changed to `value is None` so only truly missing
arguments are rejected.

Closes #4277

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@teknium1 teknium1 merged commit c1606ae into main Mar 31, 2026
4 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.

[Bug] hermes config set cannot blank a value — rejects empty strings and falsy values

2 participants