We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edc8293 commit c755960Copy full SHA for c755960
1 file changed
pkg/slack/command.go
@@ -53,17 +53,17 @@ func (arg Argument) String() string {
53
if arg.required {
54
return argname
55
} else {
56
- return " [" + argname + "]"
+ return "[" + argname + "]"
57
}
58
59
60
func (c Command) String() string {
61
output := fmt.Sprintf("`%s`: %s", c.trigger, c.description)
62
output += fmt.Sprintf("\nUsage of `%s`:", c.trigger)
63
- output += fmt.Sprintf("`%s %s`", c.trigger, lo.Reduce(c.arguments,
+ output += fmt.Sprintf("`%s`", lo.Reduce(c.arguments,
64
func(o string, x Argument, _ int) string {
65
return fmt.Sprintf("%s %s", o, x.String())
66
- }, ""))
+ }, c.trigger))
67
for _, arg := range c.arguments {
68
output += fmt.Sprintf("\n\t`%s`: %s", arg.name, arg.description)
69
0 commit comments