cmd/utils: Disallow --lightserv in light mode#15514
Conversation
|
Thank you for your contribution! Your commits seem to not adhere to the repository coding standards
Please check the contribution guidelines for more details. This message was auto-generated by https://gitcop.com |
|
Thank you for your contribution! Your commits seem to not adhere to the repository coding standards
Please check the contribution guidelines for more details. This message was auto-generated by https://gitcop.com |
karalabe
left a comment
There was a problem hiding this comment.
Sweet, just a couple of polishes and it's good to go.
There was a problem hiding this comment.
Minor suggestion, instead of nesting when the condition holds, let's continue when it doens't hold. This reduces the nesting depth of the entire code by one level:
flag, ok := arg.(cli.Flag)
if !ok {
continue;
}There was a problem hiding this comment.
I think a panic here would be better. It shouts louder that something was coded wrong:
panic("unsupported flag argument type")|
Thank you for your contribution! Your commits seem to not adhere to the repository coding standards
Please check the contribution guidelines for more details. This message was auto-generated by https://gitcop.com |
|
Thank you for your contribution! Your commits seem to not adhere to the repository coding standards
Please check the contribution guidelines for more details. This message was auto-generated by https://gitcop.com |
|
This change appears to disallow all use of Due to the change here: go-ethereum/cmd/utils/flags.go Line 986 in e4c9fd2 Since |
#15492