• Home
  • Raw
  • Download

Lines Matching full:arguments

7 pandargs is header-only utility tool that helps to parse command line arguments. It supports severa…
23 #### Arguments subsubsection
66 - regular arguments
67 - tail arguments
68 - remainder arguments
70 Regular arguments are typical non-positional arguments like ```--arg=1```
71 Tail arguments are positional arguments, which should be introduced with help of parser API
72 Remainder arguments are arguments that come after trailing `--`. All of them are plain std::vector …
78 - `bool Parse(int argc, const char* argv[])` - parse arguments. Return `true` on success. Note: `ar…
80 - `void EnableTail()` - enable positional arguments
81 - `void DisableTail()` - disable positional arguments
82 - `bool IsTailEnabled()` - return `true` if positional arguments enabled
85 - `bool PushBackTail(PandArgBase* arg)` - add tail argument to the end of tail arguments list. `fal…
87 - `void EraseTail()` - remove all arguments from tail list
92 - `std::string GetHelpString()` - return string with all arguments and their description
93 - `std::string GetRegularArgs()` - return string with all regular arguments and their values
95arguments values. Function ```PushBackTail()``` adds an argument to the end of sequence, and ```Po…
110 #### Command line arguments convention
114 - If tail (positional arguments) enabled, first argument without double dash prefix concidered as a…
115 - Positional arguments should be without names or `=` signs, separated by whitespaces.
116 - Boolean argument may be used without a value. This arguments are always considered as `true`.
117 - Remainder arguments are all literals that come after trailing `--`.
118 - True values for boolean arguments: **true**, **on**, **1**.
119 - False values for boolean arguments: **false**, **off**, **0**.
120 - For integer arguments it's possible to define value range.
122 - String and list arguments may accept no parameters.
137 $ ./app --int=1 false -1 "list1 list2 list3" # tail arguments example
138 $ ./app --double 3.14 --bool off -- arg1 --arg2=1 --arg3=false # remainder arguments example
140 In the tail arguments example, `false` is a boolean value, `-1` is integer value and `str1` and `st…
141 In the remainder arguments example, all literals coming after `--` will go to remainder and can be …
143 How to add tail arguments: