Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow arg to be empty string #983

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

mdonnalley
Copy link
Contributor

Allow args to be an empty string, e.g. my-cli hello ''

Fixes #982
@W-15161625@

@shetzel
Copy link
Contributor

shetzel commented Mar 4, 2024

QA looks good:

bin/run.js hello '' -f me
 ›   Error: Unexpected argument:
 ›   See more help with --help

yarn link "@oclif/core"
yarn link v1.22.21
success Using linked package for "@oclif/core".

bin/run.js hello '' -f me
hello  from me! (./src/commands/hello/index.ts)

@shetzel shetzel merged commit 1cfbf17 into main Mar 4, 2024
70 checks passed
@shetzel shetzel deleted the mdonnalley/empty-string-arg branch March 4, 2024 21:02
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.

oclif rejects empty string given for required argument
2 participants