提交 6d7289fa 编写于 作者: A Anton Perkov

cleos newaccount : small fix #3684

上级 a9d46b9b
......@@ -861,14 +861,16 @@ class Option {
///@{
/// Set the option as required
Option *required(bool value = true) {
required_ = value;
description_ += " (required)";
Option *required() {
if( !required_ ) {
description_ += " (required)";
}
required_ = true;
return this;
}
/// Support Plubmum term
Option *mandatory(bool value = true) { return required(value); }
Option *mandatory() { return required(); }
/// Set the number of expected arguments (Flags bypass this)
Option *expected(int value) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册