mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-21 18:36:25 +00:00
cli: fix usage format when multiple env vars are set
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
198bd2bd59
commit
fd51ed5961
@ -129,7 +129,7 @@ func Command(obj Runnable, c *cobra.Command) *cobra.Command {
|
|||||||
if v == "" {
|
if v == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
usage += fmt.Sprintf("%s [$%s]", usage, v)
|
usage += fmt.Sprintf(" [$%s]", v)
|
||||||
}
|
}
|
||||||
defInt, err := strconv.Atoi(defValue)
|
defInt, err := strconv.Atoi(defValue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user