shflags icon indicating copy to clipboard operation
shflags copied to clipboard

Add ability to mark options as required

Open GoogleCodeExporter opened this issue 10 years ago • 4 comments

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 avatar Jun 26 '15 04:06 GoogleCodeExporter

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

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

GoogleCodeExporter avatar Jun 26 '15 04:06 GoogleCodeExporter

Yes - this would be great. Any progress?

rehanog avatar Sep 28 '15 14:09 rehanog

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

stephenchu avatar Mar 02 '17 18:03 stephenchu

:+1: 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.

raine avatar Nov 26 '19 13:11 raine