def handleCLI(args, noBuildConf, options):
    """
    Handle CLI and return command object and waf cmd line
    """
    from zm import cli
    defaults = options if options else {}
    cmd, wafCmdLine = cli.parseAll(args, noBuildConf, defaults)
    cli.selected = cmd
    return cmd, wafCmdLine
