Skip to main content

argcount

Description

Get the number of arguments passed to the script (those after --).

Returns

The number of arguments passed directly to the script.

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