Skip to content

A simple argument parser for C++ command line programs.

License

Notifications You must be signed in to change notification settings

pattersongp/argparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArgParse

A simple argument parser for command line programs.

Usage:

ArgParse args;
args.addArg("-c", "--compile", [](){
		std::cout << "-c flag called!" << std::endl;
});
args.addArg("-g", "--good-doge", [&](){
		for(auto v : args.getActuals("-g")) {
			std::cout << v << std::endl;
		}
});
args.addAction([&](){
		for(auto v : args.getActuals("_imp")) {
			std::cout << v << std::endl;
		}
});
args.parse(argv);

About

A simple argument parser for C++ command line programs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published