Argument

argument name

Create a local variable in a manner similar to the way the local statement does, except that an initializing expression is not accepted. This is a special value that is taken as an argument to the FISH function in which it is contained. argument statements must precede any local statements. The argument statement can be used in addition to arguments provided in the define command.

To execute the function, arguments must be given as parenthesis-bound lists, both in FISH statements and in the command line. For example, the function abc, defined as:

DEFINE abc
   argument one
   argument two
END

may be called in FISH code as:

var = abc(1.0, 2.0)

or referred to on the command line as:

SET creep dt @abc(1.0,2.0)

Note that this is the same syntax used to provide array indices. The argument list is not necessary when assigning values to the function.