Skip to content

Commit

Permalink
fix: remove support for NoOptDefaultValue (#14985)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeancarloBarrios authored Feb 9, 2023
1 parent da5db35 commit 3c53870
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 109 deletions.
130 changes: 27 additions & 103 deletions api/cosmos/autocli/v1/options.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion client/v2/autocli/flag/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func (b *Builder) addMessageFlags(ctx context.Context, flagSet *pflag.FlagSet, m
flag.Deprecated = opts.Deprecated
flag.ShorthandDeprecated = opts.ShorthandDeprecated
flag.Hidden = opts.Hidden
flag.NoOptDefVal = opts.NoOptDefaultValue
}
})

Expand Down
4 changes: 2 additions & 2 deletions client/v2/autocli/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ var testCmdDesc = &autocliv1.ServiceCommandDescriptor{
DefaultValue: "3",
},
"u64": {
Usage: "some random uint64",
NoOptDefaultValue: "5",
Usage: "some random uint64",
DefaultValue: "5",
},
"deprecated_field": {
Deprecated: "don't use this",
Expand Down
3 changes: 0 additions & 3 deletions proto/cosmos/autocli/v1/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ message FlagOptions {
// default_value is the default value as text.
string default_value = 4;

// default value is the default value as text if the flag is used without any value.
string no_opt_default_value = 5;

// deprecated is the usage text to show if this flag is deprecated.
string deprecated = 6;

Expand Down

0 comments on commit 3c53870

Please sign in to comment.