diff --git a/bot/subcommand.go b/bot/subcommand.go index eefc30c..f0ac732 100644 --- a/bot/subcommand.go +++ b/bot/subcommand.go @@ -265,6 +265,11 @@ func (sub *Subcommand) Help(indent string, hideAdmin bool) string { commands += " " + underline(usage) } + // Is the last argument trailing? If so, append ellipsis. + if cmd.Variadic { + commands += "..." + } + // Write the description if there's any. if cmd.Description != "" { commands += ": " + cmd.Description diff --git a/bot/subcommand_test.go b/bot/subcommand_test.go index 6f77905..6f32ea2 100644 --- a/bot/subcommand_test.go +++ b/bot/subcommand_test.go @@ -1,6 +1,8 @@ package bot -import "testing" +import ( + "testing" +) func TestNewSubcommand(t *testing.T) { _, err := NewSubcommand(&testc{})