diff options
Diffstat (limited to 'pkg/server/echo.go')
| -rw-r--r-- | pkg/server/echo.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/server/echo.go b/pkg/server/echo.go index 2ac54b9..ee0537b 100644 --- a/pkg/server/echo.go +++ b/pkg/server/echo.go @@ -4,11 +4,10 @@ import ( "strings" ) -func echo(r *request) { +func echo(r *request, args ...string) { expand := false - args := r.args - if r.argc > 0 && r.args[0] == "-e" { + if len(args) > 0 && args[0] == "-e" { expand = true args = args[1:] } @@ -21,5 +20,5 @@ func echo(r *request) { } func init() { - newCmd(echo, "echo") + newCmd("echo", echo, "[args]") } |
