ARG

 ──ARG(─┬───────────────────┬─)───────────
          └─n──┬───────────┬──┘
               └─,option───┘

ARG returns an argument string, or information about the argument strings to a program or internal routine.

If you do not specify a parameter, the number of arguments passed to the program or internal routine is returned.

If only n is specified, the n th argument string is returned. If the argument string does not exist, the null string is returned. n must be a positive whole number.

If you specify option, ARG tests for the existence of the n th argument string. Valid options (of which only the capitalized letter is significant and all others are ignored) are: