Skip to content

fix inconsistent flag names in upgrade proposal command#7697

Merged
mergify[bot] merged 3 commits intocosmos:masterfrom
yihuang:upgrade-flags
Oct 28, 2020
Merged

fix inconsistent flag names in upgrade proposal command#7697
mergify[bot] merged 3 commits intocosmos:masterfrom
yihuang:upgrade-flags

Conversation

@yihuang
Copy link
Copy Markdown
Collaborator

@yihuang yihuang commented Oct 28, 2020

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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Copy link
Copy Markdown
Contributor

@amaury1093 amaury1093 left a 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?

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 28, 2020

Codecov Report

Merging #7697 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7697   +/-   ##
=======================================
  Coverage   54.11%   54.11%           
=======================================
  Files         611      611           
  Lines       38571    38571           
=======================================
  Hits        20871    20871           
  Misses      15573    15573           
  Partials     2127     2127           

FlagUpgradeHeight = "upgrade-height"
FlagUpgradeTime = "time"
FlagUpgradeInfo = "info"
FlagUpgradeTime = "upgrade-time"
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Collaborator Author

@yihuang yihuang Oct 28, 2020

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.

Copy link
Copy Markdown
Contributor

@alessio alessio Oct 28, 2020

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 👍

@mergify mergify bot merged commit afb6771 into cosmos:master Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants