suve

awful: function: param-cnt

Available since rev.32 (v.0.4.1).

Declaration

int :param-cnt

Summary

Returns the number of command line arguments passed to script.

Example

# :param-cnt example.
:set &argc :param-cnt
:set &argv :param-arr
:writeln s'argc: ' $argc

wikipage modified on 2014/0601/2317