def configure_cli_command(cmdline):
 args = shlex.split(cmdline)
 cli = CommandLineInterface()
 cmdinst = cli._configure_command(cmdname=args[0], argv=args[1:])
 return cmdinst

def configure_cli_command ( cmdline ) : args = shlex . split ( cmdline ) cli = CommandLineInterface ( ) cmdinst = cli . _configure_command ( cmdname = args [ 0 ] , argv = args [ 1 : ] ) return cmdinst
helper to configure a command class .