def exhandler(function, parser):
args = vars(bparser.parse_known_args()[<NUM_LIT:0>])<EOL>if args["<STR_LIT>"]:<EOL><INDENT>function()<EOL>return<EOL><DEDENT>if args["<STR_LIT>"]:<EOL><INDENT>from liveserial.msg import set_verbosity<EOL>set_verbosity(args["<STR_LIT>"])<EOL><DEDENT>args.update(vars(parser.parse_known_args()[<NUM_LIT:0>]))<EOL>return args<EOL>
If -examples was specified in 'args', the specified function
    is called and the application exits.

    :arg function: the function that prints the examples.
    :arg parser: the initialized instance of the parser that has the
      additional, script-specific parameters.