• Home
  • Raw
  • Download

Lines Matching full:arguments

7 pandargs is header-only utility tool that helps to parse command line arguments. It supports severa…
25 …d of `PandArg`, `PandArgCompound` can be used, which serves for creation of the compound arguments.
28 #### Arguments subsubsection
35 // argument name | argument description | sub-arguments
43 - PandArgCompound accepts three parameters: argument name, description and list of sub-arguments
52 - List of sub-arguments has type `std::initializer_list<PandArgBase *>`, and it accepts any non-com…
53 Sub-arguments should not be added to the parser via `PandArgParser::Add`.
77 - regular arguments
78 - tail arguments
79 - remainder arguments
81 Regular arguments are typical non-positional arguments like ```--arg=1```
82 Tail arguments are positional arguments, which should be introduced with help of parser API
83 Remainder arguments are arguments that come after trailing `--`. All of them are plain std::vector …
85 Compound argument is a boolean argument, which can contains sub-arguments, followed by symbol `:`,
86 …: `--compiler-dump:folder=ir_dump,compact`. Sub-arguments follow the same rules as the regular arg…
87 and can be any type of argument. Compound arguments implicitly have default value `false` and user …
89 To access compound arguments from `C++`, regular convention should be used, for accessing sub-argum…
91 E.g. `--compiler-dump:compact`, here, to access `compact` sub-arguments `[Is|Get]CompilerDumpCompac…
97 - `bool Parse(int argc, const char* argv[])` - parse arguments. Returns `true` on success. Note: `a…
99 - `void EnableTail()` - enables positional arguments
100 - `void DisableTail()` - disables positional arguments
101 - `bool IsTailEnabled()` - returns `true` if positional arguments enabled
104 - `bool PushBackTail(PandArgBase* arg)` - add tail argument to the end of tail arguments list. `fal…
106 - `void EraseTail()` - remove all arguments from tail list
111 - `std::string GetHelpString()` - returns string with all arguments and their description
112 - `std::string GetRegularArgs()` - returns string with all regular arguments and their values
114arguments values. Function ```PushBackTail()``` adds an argument to the end of sequence, ```PopBac…
129 #### Command line arguments convention
133 - If tail (positional arguments) enabled, first argument without double dash prefix concidered as a…
134 - Positional arguments should be without names or `=` signs, separated by whitespaces
135 - Boolean argument may be used without a value. This arguments always considered as `true`
136 - Remainder arguments are all literals that come after trailing `--`
137 - True values for boolean arguments: **true**, **on**, **1**
138 - False values for boolean arguments: **false**, **off**, **0**
139 - for integer arguments it's possible to define value range
141 - string and list arguments may accept no parameters
157 $ ./app --int=1 false -1 "list1 list2 list3" # tail arguments example
158 $ ./app --double 3.14 --bool off -- arg1 --arg2=1 --arg3=false # remainder arguments example
161 In the tail arguments example, `false` is a boolean value, `-1` is integer value and `str1` and `st…
162 In the remainder arguments example, all literals coming after `--` will go to remainder and can be …
164 How to add tail arguments: