{"comment":{"url":"https://api.github.com/repos/rhiguita/u-root/comments/12891729","html_url":"https://github.com/rhiguita/u-root/commit/08da13a83dc824193c158ba289e51a8f92ddda6a#commitcomment-12891729","id":12891729,"user":{"login":"rminnich","id":74928,"avatar_url":"https://avatars.githubusercontent.com/u/74928?v=3","gravatar_id":"","url":"https://api.github.com/users/rminnich","html_url":"https://github.com/rminnich","followers_url":"https://api.github.com/users/rminnich/followers","following_url":"https://api.github.com/users/rminnich/following{/other_user}","gists_url":"https://api.github.com/users/rminnich/gists{/gist_id}","starred_url":"https://api.github.com/users/rminnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminnich/subscriptions","organizations_url":"https://api.github.com/users/rminnich/orgs","repos_url":"https://api.github.com/users/rminnich/repos","events_url":"https://api.github.com/users/rminnich/events{/privacy}","received_events_url":"https://api.github.com/users/rminnich/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"08da13a83dc824193c158ba289e51a8f92ddda6a","created_at":"2015-08-25T22:44:30Z","updated_at":"2015-08-25T22:44:30Z","body":"You'll need to pick flags.Args or os.Args -- they're not compatible and this will break as soon as we ever have flags. One convention:\r\nflag.Parse()\r\na := flag.Args()\r\nif len(a) < 2 ... \r\nos.Rename(a[0], a[1])\r\n\r\nThis is a tiny bit more efficient than lots of calls to flags.Args() but reall that's a nit.\r\n\r\nJust a thought. \r\n\r\nI hope we never have the insane GNU args I just saw in a man page!"}}