def is_subcmd(opts, args):
if not opts and args:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
if sys.argv[1:] does not match any getopt options,
    we simply assume it is a sub command to execute onecmd()