code: def exhandler(function, parser):
      
      args = vars(bparser.parse_known_args()[0])
      if args["examples"]:
          function()
          exit(0)
      if args["verbose"]:
          from msg import set_verbosity
          set_verbosity(args["verbose"])
  
      args.update(vars(parser.parse_known_args()[0]))
      return args
docs: 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.