2022-11-13 16:50:27 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-10-04 01:53:37 +00:00
|
|
|
#include <argparse/argparse.hpp>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
argparse::ArgumentParser program("main");
|
|
|
|
program.add_argument("thing").help("Thing to use.").metavar("THING");
|
|
|
|
program.add_argument("--member")
|
|
|
|
.help("The alias for the member to pass to.")
|
|
|
|
.metavar("ALIAS");
|
|
|
|
program.add_argument("--verbose").default_value(false).implicit_value(true);
|
|
|
|
|
|
|
|
program.add_description("Forward a thing to the next member.");
|
|
|
|
program.add_epilog("Possible things include betingalw, chiz, and res.");
|
|
|
|
|
|
|
|
program.parse_args(argc, argv);
|
|
|
|
|
|
|
|
std::cout << program << std::endl;
|
|
|
|
}
|