Przejdź do głównej zawartości

argindex

Description

Get the name of the argument at the given index after --.

NameDescription
indexThe naught-based offset to the script argument.
value[]The output string destination.
size = sizeof (value)The size of the destination.
bool:pack = falseShould the return value be packed?

Returns

true - the argument was found, false - it wasn't.

Notes

Separate parameters also count for the index here.

For example with --load test --run the argument --run is index 2.

  • argcount: Get the number of arguments passed to the script (those after --).
  • argstr: Get the string value of an argument by name.
  • argvalue: Get the number of arguments passed to the script (those after --).