mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-12-21 08:30:44 +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 == "" {
|
||||
continue
|
||||
}
|
||||
usage += fmt.Sprintf("%s [$%s]", usage, v)
|
||||
usage += fmt.Sprintf(" [$%s]", v)
|
||||
}
|
||||
defInt, err := strconv.Atoi(defValue)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user