Next: , Previous: , Up: preprocessor   [Contents][Index]


2.6 Script arguments handling

Preprocessor Macro: mbfl_command_line_argument varname argindex

Define a variable local to a shell function holding an argument to the script. varname is the variable name, argindex is the argument index in the ARGV array.

Example, the following:

mbfl_command_line_argument(PATHNAME,3)

is expanded to:

local PATHNAME=${ARGV[3]}

Next: , Previous: , Up: preprocessor   [Contents][Index]

This document describes version 3.0.0-devel.0 of Marcos Bash Functions Library.