From e297e2da419fd74d69b9c815313fb9a499efed24 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 28 Oct 2014 17:24:22 -0700 Subject: [PATCH] core/commands: Added a 'args' command to test argument parsing --- core/commands/root.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/commands/root.go b/core/commands/root.go index 1393eb2fb..ba5129441 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -74,5 +74,10 @@ Use "ipfs help " for more information about a command. } }, }, + "args": &cmds.Command{ + Run: func(req cmds.Request, res cmds.Response) { + res.SetValue(req.Arguments()) + }, + }, }, }