Skip to content

A Light-weight Commandline Parser implemented in Modern C++

License

Notifications You must be signed in to change notification settings

toyoh3232/ccmdliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ccmdliner

A Light-weight Commandline Parser implemented in Modern C++

Example

    commandline op;
    op.overview = "commandtool Tool";
    op.add_action("list", "List all detected ATA devices",3);
    op.add_option("size", "Set size to ATA devices");
    try
    {
        auto r = op.parse(argc, argv);
        cout << r.action() << endl; 
        if (auto [ok, val] = r.option<long long>("size"); ok)
            cout << val << endl;
    }
    catch (exception& e)
    {
        cout << e.what() << endl;
    }

About

A Light-weight Commandline Parser implemented in Modern C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages