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 example for making persistent flags required #1135

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Conversation

ademuri
Copy link
Contributor

@ademuri ademuri commented Jun 12, 2020

I just started using Cobra, and was confused as to why MarkFlagRequired didn't seem to be working. It was because I was using a persistent flag, and called MarkFlagRequired instead of MarkPersistentFlagRequired. I think this change makes this more clear.

I just started using Cobra, and was confused as to why MarkFlagRequired didn't seem to be working. It was because I was using a persistent flag, and called MarkFlagRequired instead of MarkPersistentFlagRequired. I think this change makes this more clear.
@CLAassistant
Copy link

CLAassistant commented Jun 12, 2020

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

This PR is being marked as stale due to a long period of inactivity

@alessio
Copy link
Contributor

alessio commented Oct 6, 2020

Good addition to the doc 👍

@alessio
Copy link
Contributor

alessio commented Oct 6, 2020

CC'ing @jharshman @eparis @jpmcb

Copy link
Collaborator

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

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

Thanks for contributing!

@jpmcb jpmcb merged commit 142dfb1 into spf13:master Oct 14, 2020
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.

4 participants