script_get_arg()

def script_get_arg(offset) -> string

Get a command line argument

Args

  • offset: int: The offset of the argument to get

Returns

The argument at the given offset

script_get_args()

def script_get_args() -> dict

Get all command line arguments

named arguments are of the format --name=value.

Returns

A dict with members ordered (list) and named (dict)

script_print()

def script_print(message)

Print a message

This is for debugging purposes only. It is not recommended to use this function for normal output.

Args

  • message: string: The message to print

script_set_exit_code()

def script_set_exit_code(exit_code)

Set the exit code

This does not exit the script. It just sets the exit code.

Args

  • exit_code: int: The exit code