Contents

args

Processes command line arguments for Textadept.

Arg Events


Functions


process(arg)

Processes command line argument table arg, handling switches previously defined using args.register() and treating unrecognized arguments as filenames to open. Emits an 'arg_none' event when no arguments are present.

Parameters:

See also:


register(short, long, narg, f, description)

Registers a command line switch with short and long versions short and long, respectively. narg is the number of arguments the switch accepts, f is the function called when the switch is tripped, and description is the switch’s description when displaying help.

Parameters: