2

これは私のコマンド ライン パラメータの 1 つです。

 new FlaggedOption("nrMaxIterations", JSAP.INTEGER_PARSER, null, JSAP.NOT_REQUIRED, JSAP.NO_SHORTFLAG,    "nrMaxIterations", "Maximum pool iterations to run")

渡された 3 番目の値でわかるように、パラメーターが不要になるように設定しても、まだエラーが発生します。

exception: com.martiansoftware.jsap.UnspecifiedParameterException: Parameter 'nrMaxIterations' has no associated value.

これは起こらないはずです。パラメーターが必須ではないように設定しましたが、何らかの理由で必須として機能します。

ありがとう

4

0 に答える 0