Commons CLI

コンポーネント レポジトリ

Sandboxコンポーネント

日本語訳 (Translations)

オリジナル

Option Construction

There are two ways to create an Option; with the Option constructors or with the factory methods defined in Options. The method signatures of both approaches are identical.

The entries in the following table describe the method signatures of the constructors and of the factory methods using the names of the properties the parameters represent.

API API Parameter Order
ctor factory Opt, Arg, Description
ctor factory Opt, LongOpt, Arg, Description
ctor factory Opt, LongOpt, Arg, Description, Required
ctor factory Opt, LongOpt, Arg, Description, Required, MultipleArgs
ctor factory Opt, LongOpt, Arg, Description, Required, MultipleArgs, Type

To add an Option that has been created using a constructor the addOption method must be used.



Copyright © 1999-2007, Apache Software Foundation
Translated into Japanese by Tetsuya Kitahata , powered by Terra-International, Inc.
Original English Page would be found from HERE     --    ApacheNews    ASF プロジェクト一覧
Terra-International, Inc. -- テラ・インターナショナル
Special Thanks -- 【お問い合わせ/テキスト広告】