{"repo":"igormironchik/args-parser","free":true,"listed":false,"github":"https://github.com/igormironchik/args-parser","clone":"git clone https://github.com/igormironchik/args-parser.git","description":"args-parser is a small C++ header-only library for parsing command line arguments.","language":"C++","stars":91,"topics":["c-plus-plus","cli","argument-parser","arguments","header-only","subcommands","qt","command-line","cpp","parser"],"license":null,"category":"cli-tools","readme_excerpt":"This is args-parser . args-parser is a small C++ header-only library for parsing command line arguments. Syntax Different types of strings. Different types of list of strings. Q/A Why not to add description, long description, etc. into constructors of arguments, so it will be possible to initialize argument in one line? How can I add args-parser to my project? Why should I use this library? How to print help programmatically? Why doesn't args-parser provide bindings of variables to arguments? Why don't you provide comparisons with other CLI libraries? Changelog Example One-line syntax with commands One-line syntax with arguments And with the old syntax Syntax An argument starts with two dashes. For example --argument . A flag starts with one dash. For example -b . If an argument has a value, then the value can be specified after a space or after an equal sign. For example --argument value and --argument=value . Flags without values can be combined into one block. For example -abc defines three flags -a , -b and -c . The last flag in a flags' block can have a value. For example -abc=value . And here, flag -c will have the value value . MultiArg class provides the ability to define more than one value for an argument. These types of arguments can be specified more than once in the command line. And the resulted value of the argument will be StringList . Command class can be used to define command in command line interface. Command is the argument without dash/dashes at the begi","default_branch":null,"files":null,"tree":[],"storefront":"/r/igormironchik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/igormironchik/args-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}