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 ability to mark options as required #12

Open
GoogleCodeExporter opened this issue Jun 26, 2015 · 4 comments
Open

Add ability to mark options as required #12

GoogleCodeExporter opened this issue Jun 26, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

There isn't currently any way to mark a flag as required for operation of the 
program. It would be nice to have a uniform way for a flag to be marked as 
required.


What version of the product are you using? On what operating system?
shflags-1.0.3.tgz, Centos 5.4 and archlinux

Original issue reported on code.google.com by BostonVaulter on 15 Jul 2010 at 3:47

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 6 Jan 2013 at 4:37

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@rehanog
Copy link

rehanog commented Sep 28, 2015

Yes - this would be great. Any progress?

@stephenchu
Copy link

+1000 on this feature. shflags has been great to me, and this feature is about the only thing I miss.

@raine
Copy link

raine commented Nov 26, 2019

👍 Maybe a sensible approach would be to have shflags complain on execution if a default value is not passed. Or alternatively introduce something like DEFINE_string_required.

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

No branches or pull requests

5 participants