Skip to content

argcpp17 is a command line parser using c++17 features

License

Notifications You must be signed in to change notification settings

cemoktra/argcpp17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

argcpp17

argcpp17 is a command line parser using c++17 features. It supports sub-commands, flags, mandatory and optional arguments and positional arguments.

A simple hello world application could be:

#include <argcpp17.h>
int main(int argc, char **args)
{
  parser cmdline;
  cmdline.add_flag({"flag1"}, "description")
         .add_flag({"flag2", "f2"}, "another description")
         .add_option({"option", "o"}, "some double value");
  cmdline.parse(argc, args);
  cmdline.get_flag({"f2"});
  cmdline.get_value<double>({"option"});
}

About

argcpp17 is a command line parser using c++17 features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published