/ program / 2.0 / sh / parser.chunks.html

Table of content

Templates


Details

Templates


"$parser_index++"

parser_item=${parser_input[$parser_index]}

for each remaining input, append parser_input[] to parser_values[]
  1. interpreter

@todo use unified id
  1. optionNode
    Option node
    Default value: .
  2. onError
    If set, test return value of setoptionpresence function
    Default value: ''
  3. depth
    Internal use
    Default value: 0

Set default values for all single arguments in a root item info (part of the setdefaultoptions function)
  1. rootNode
  2. interpreter
prg.sh.parser.unescapeValue(variableName="$prg.sh.parser.vName_item")

Remove \ protection if any
  1. variableName
    Default value: $prg.sh.parser.vName_item
  1. optionNode
    Default value: .
  2. shortOption
    Default value: false()
  3. onError
  1. optionNode
    Default value: .
  2. value
  3. onError
  4. currentItem
    Default value: option \" \"

List of test to check if a group was "set" at least by one variable
  1. groupOptionNode
    The group node
    Default value: .
  2. optionNode
    If set, also check if group was set by this option
prg.sh.parser.groupCheck(optionNode=".", onError, shortOption="false()", process="true()", comments="true()", originalOptionNode="$optionNode")

Chec if the option is part of a group and if it does not break mutual exclusion rule
  1. optionNode
    Option to check
    Default value: .
  2. onError
    Additional things to do when checks fail
  3. shortOption
    Option name type
    Default value: false()
  4. process
    Disable default processing
    Default value: true()
  5. comments
    Internal use
    Default value: true()
  6. originalOptionNode
    Internal use
    Default value: $optionNode
  1. node
    Default value: .
  2. value
  3. onError
  4. interpreter
  5. currentItem
    Default value: option \" \"
  1. node
    Default value: .
  2. isOption
    Default value: true()
  3. valueVariableName
  4. max
  5. onError
  1. optionNode
    Default value: .
  2. useFunction
    Default value: false()
  1. optionsNode
  2. useFunction
    Default value: false()
  3. recursive
    Default value: true()
  1. valuesNode
  2. interpreter
  3. positionVar
  4. onError
  5. value
    Even if a positional argument is invalid, the value is added to the global array
    Default value: value

Variable Initialization
  1. programNode
    Default value: .