Communities for your favorite technologies. Explore all Collectives
Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
You can use GFlagsshFlags.
It gives you the option to define: DEFINE_bool
DEFINE_bool
Example:
DEFINE_bool(big_menu, true, "Include 'advanced' options in the menu listing");
From the command line you can define:
sh script.sh --bigmenu sh script.sh --nobigmenu # False
You can use GFlags.
You can use shFlags.
You can use GFlags: https://gflags.github.io/gflags/GFlags.
You can use GFlags: https://gflags.github.io/gflags/
From command line you can define: