-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 validate cmd bug #5920
Fix validate cmd bug #5920
Conversation
client/cmd.go
Outdated
for _, s := range suggestions { | ||
err += fmt.Sprintf("\t%v\n", s) | ||
// check if the current arg is a flag | ||
if len(arg) > 0 && (arg[0] == '-') { |
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.
ifElseChain: rewrite if-else to switch statement (from gocritic
)
@colin-axner I've updated Gaia to work with the latest master (e0c1774). Please go ahead and test these changes along with addressing any lint issues. Thanks for taking this up! 👍 |
Codecov Report
@@ Coverage Diff @@
## master #5920 +/- ##
==========================================
+ Coverage 56.48% 57.06% +0.58%
==========================================
Files 342 342
Lines 20261 20064 -197
==========================================
+ Hits 11444 11450 +6
+ Misses 7972 7768 -204
- Partials 845 846 +1
|
@colin-axner lmk when this is R4R again. |
@alexanderbez it's R4R, I tested locally with latest gaia version |
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.
ACK 👍
Closes: #5919
Description
updates validateCmd to search for the unknown command, ignoring any flags and their values and returning the help screen if the help flags are an argument.
untested at the moment.. having trouble installing via gaia because this branch is on the latest sdk version which has build issues on gaia
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)