public abstract class OptionParsingCommand extends AbstractCommand
OptionHandler を使用してオプションを解析する Command の基本クラス。OptionHandler| 修飾子 | コンストラクターと説明 |
|---|---|
protected | OptionParsingCommand(StringSE name, StringSE description, OptionHandler handler) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected OptionHandler | getHandler() |
StringSE | getHelp() コマンドの完全なヘルプテキストを取得します。 |
CollectionSE<OptionHelp> | getOptionsHelp() サポートされている各オプションのヘルプを返します。 |
ExitStatus | run(StringSE... args) コマンドを実行。 |
getDescription, getExamples, getName, getUsageHelpcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected OptionParsingCommand(StringSE name, StringSE description, OptionHandler handler)
public StringSE getHelp()
CommandCommand 内の getHelp AbstractCommand の getHelp public CollectionSE<OptionHelp> getOptionsHelp()
CommandCommand 内の getOptionsHelp AbstractCommand の getOptionsHelp public final ExitStatus run(StringSE... args) throws ExceptionSE
Commandargs - コマンド引数 (これにはコマンド自体は含まれません)ExceptionSE - コマンドが失敗した場合 protected OptionHandler getHandler()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.