{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1735","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1735/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1735/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1735/events","html_url":"https://github.com/ipfs/go-ipfs/issues/1735","id":107403985,"number":1735,"title":"gencmdref script ending in runtime error","user":{"login":"RichardLitt","id":910753,"avatar_url":"https://avatars.githubusercontent.com/u/910753?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardLitt","html_url":"https://github.com/RichardLitt","followers_url":"https://api.github.com/users/RichardLitt/followers","following_url":"https://api.github.com/users/RichardLitt/following{/other_user}","gists_url":"https://api.github.com/users/RichardLitt/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardLitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardLitt/subscriptions","organizations_url":"https://api.github.com/users/RichardLitt/orgs","repos_url":"https://api.github.com/users/RichardLitt/repos","events_url":"https://api.github.com/users/RichardLitt/events{/privacy}","received_events_url":"https://api.github.com/users/RichardLitt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-20T16:46:09Z","updated_at":"2015-09-27T03:41:29Z","closed_at":null,"body":"I am trying to move `bin/gencmdref` to the ipfs/website directly, because the Makefile there uses it, it has a hardcoded to path to where it is stored on @jbenet's machine, and there's now been two PRs to the script in this repository to fix an issue in ipfs/website (#1733 and #1723). \r\n\r\nRunning `ipfs commands | gencmdref` breaks, however, and I'm not sure why. Here is my exit code: \r\n\r\n```sh\r\npanic: runtime error: index out of range\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/ipfs/go-ipfs/commands/cli.parseArgs(0x8210fb4d0, 0x0, 0x3, 0x82111c008, 0xf41a80, 0x2, 0x2, 0x0, 0xf42220, 0x0, ...)\r\n\t/go/src/github.com/ipfs/go-ipfs/commands/cli/parse.go:266 +0x10ea\r\ngithub.com/ipfs/go-ipfs/commands/cli.Parse(0x8210f23d0, 0x3, 0x3, 0x82111c008, 0xf42220, 0x0, 0x0, 0x821249d00, 0x0, 0x0, ...)\r\n\t/go/src/github.com/ipfs/go-ipfs/commands/cli/parse.go:45 +0x52b\r\nmain.(*cmdInvocation).Parse(0x8210f2840, 0x88212a2110, 0x8210fb440, 0x8210f23d0, 0x3, 0x3, 0x0, 0x0)\r\n\t/go/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:236 +0x89\r\nmain.main()\r\n\t/go/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:107 +0x3db\r\n\r\ngoroutine 18 [chan receive]:\r\ngithub.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics.init.1.func2()\r\n\t/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics/metrics.go:321 +0x73\r\ncreated by github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics.init.1\r\n\t/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics/metrics.go:328 +0x7b\r\n\r\ngoroutine 19 [syscall]:\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/usr/local/go/src/os/signal/signal_unix.go:28 +0x37\r\nTraceback (most recent call last):\r\n  File \"gencmdref\", line 38, in <module>\r\n    main()\r\n  File \"gencmdref\", line 28, in main\r\n    print run((line + ' --help').split(' ')).strip()\r\n  File \"gencmdref\", line 11, in run\r\n    return check_output(cmd)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 573, in check_output\r\n    raise CalledProcessError(retcode, cmd, output=output)\r\nsubprocess.CalledProcessError: Command '['ipfs', 'dht', 'put', '--help']' returned non-zero exit status 2\r\n```"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/143515471","html_url":"https://github.com/ipfs/go-ipfs/issues/1735#issuecomment-143515471","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1735","id":143515471,"user":{"login":"jbenet","id":138401,"avatar_url":"https://avatars.githubusercontent.com/u/138401?v=3","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T03:41:29Z","updated_at":"2015-09-27T03:41:29Z","body":"@RichardLitt where's the hardcoded path? is that in the website repo?"}}