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

Add a documentation section in the using guide about setting empty values in PowerShell using --someStringOption="" #4345

Closed
martinlingstuyl opened this issue Jan 11, 2023 · 2 comments
Assignees
Milestone

Comments

@martinlingstuyl
Copy link
Contributor

martinlingstuyl commented Jan 11, 2023

As we've seen in the mentioned issue below, there is an issue in PowerShell when setting options to empty values.
The problem is that PowerShell does not pass an empty string argument to the CLI, which results in the option being evaluated as a flag.

--description "" would result in description: true.

The workaround

Using --description="" takes care of passing the empty string arg correctly to the CLI.

This issue is fixed when the documentation is expanded with a section explaining how to do this. Just like this section

Originally posted by @martinlingstuyl in #3718 (comment)

@SmitaNachan
Copy link
Contributor

Can I work on it?

@milanholemans
Copy link
Contributor

milanholemans commented Jan 12, 2023

Certainly @SmitaNachan! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants