Fix improper whitespace formatting in usageTemplate variable#1946
Conversation
|
Hi, thanks for the contribution! Could you show a comparison of before/after? |
// test.go
package main
import (
"os"
cli "github.com/urfave/cli/v2"
)
func main() {
app := cli.NewApp()
app.ArgsUsage = "[arg1]"
app.Commands = []*cli.Command{
{
Name: "cmd1",
ArgsUsage: "[arg2]",
Action: func(cctx *cli.Context) error {
return nil
},
},
}
err := app.Run(os.Args)
if err != nil {
panic(err)
}
}
but differencethere is no space between comand options and custom args usage. |
I'm sorry that when modifying the code today, I missed some variables related to ArgsUsage for the sake of convenience in using the vim editor. The whitespace issue in the SubcommandHelpTemplate variable has now been fixed, and running 'go test ./...' shows no problems. |
|
@caeret Sorry looks like I messed up the commit by force pushing v2-maint to your repo. . Can you repush your PR ? Also run "make docs" and "make v2approve" |
|
Closed by mistake |
just fix usageTemplate variable in
template.go