-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix inconsistent flag names in upgrade proposal command #7697
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you add a changelog entry?
9550107
to
f8ff0d9
Compare
Codecov Report
@@ Coverage Diff @@
## master #7697 +/- ##
=======================================
Coverage 54.11% 54.11%
=======================================
Files 611 611
Lines 38571 38571
=======================================
Hits 20871 20871
Misses 15573 15573
Partials 2127 2127 |
@@ -19,8 +19,8 @@ const ( | |||
TimeFormat = "2006-01-02T15:04:05Z" | |||
|
|||
FlagUpgradeHeight = "upgrade-height" | |||
FlagUpgradeTime = "time" | |||
FlagUpgradeInfo = "info" | |||
FlagUpgradeTime = "upgrade-time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, yet why not just changing update-height
to height
? Considering that the command itself is named software-upgrade
, flags upgrade-
prefix has always sounded a bit of an unnecessary repetition IMHO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--height
might be confusing with other usage? when query stuff, there's usually a block height parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--height
is a flag for query commands only. It should be safe to reuse it here - please check it out in client/flags
👍
Description
the flag names in command "tx gov submit-proposal software-upgrade" is not consistent with the name suggest in help messages.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes