BdioMain.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:bdio 作者:
@SuppressWarnings("MissingSuperCall")
@Override
protected Tool parseArguments(String[] args) {
    commandName = Iterables.getFirst(arguments(args), Command.help.name());
    commandArgs = removeFirst(commandName, args);

    // Special behavior for help
    if (options(args).contains("--help")) {
        commandArgs = removeFirst("--help", ObjectArrays.concat(commandName, commandArgs));
        commandName = Command.help.name();
        args = removeFirst("--help", args);
    }

    // Display our version number and stop (note that commands can still override '--version')
    if (options(args).contains("--version")
            && (commandName.equals(Command.help.name()) || isBefore("--version", commandName, args))) {
        printVersion();
        return doNothing();
    }

    // Do not delegate to the super, allow the commands to do the parsing
    return this;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号