{"action":"created","issue":{"url":"https://api.github.com/repos/tcnksm/gcli/issues/58","repository_url":"https://api.github.com/repos/tcnksm/gcli","labels_url":"https://api.github.com/repos/tcnksm/gcli/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/tcnksm/gcli/issues/58/comments","events_url":"https://api.github.com/repos/tcnksm/gcli/issues/58/events","html_url":"https://github.com/tcnksm/gcli/issues/58","id":143770986,"number":58,"title":"How do I add flags to commands","user":{"login":"rajeevb2","id":1097569,"avatar_url":"https://avatars.githubusercontent.com/u/1097569?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeevb2","html_url":"https://github.com/rajeevb2","followers_url":"https://api.github.com/users/rajeevb2/followers","following_url":"https://api.github.com/users/rajeevb2/following{/other_user}","gists_url":"https://api.github.com/users/rajeevb2/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeevb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeevb2/subscriptions","organizations_url":"https://api.github.com/users/rajeevb2/orgs","repos_url":"https://api.github.com/users/rajeevb2/repos","events_url":"https://api.github.com/users/rajeevb2/events{/privacy}","received_events_url":"https://api.github.com/users/rajeevb2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-27T02:54:27Z","updated_at":"2016-03-27T04:22:59Z","closed_at":"2016-03-27T04:22:59Z","body":"It appears that gcli supports either flags or command pattern. Can Flags be added in the .toml file, so you can do something like\r\ntodo create --file name --dir dirname --perm 0600\r\n\r\nIn this example, I want the toml file to have\r\n[[Commands]]\r\n  Name= \"create\"\r\n  FunctionName=\"todocreate\"\r\n  Synopsis=\"Create files\"\r\n  Flag=\"file:string\"\r\n  Flag=\"dir:string\"\r\n  Flag=\"perm:Int\"\r\n\r\nI was able to get this to work by editing commands.go, but I was hoping to see if there is a way to specify this in the toml file"},"comment":{"url":"https://api.github.com/repos/tcnksm/gcli/issues/comments/201987112","html_url":"https://github.com/tcnksm/gcli/issues/58#issuecomment-201987112","issue_url":"https://api.github.com/repos/tcnksm/gcli/issues/58","id":201987112,"user":{"login":"rajeevb2","id":1097569,"avatar_url":"https://avatars.githubusercontent.com/u/1097569?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeevb2","html_url":"https://github.com/rajeevb2","followers_url":"https://api.github.com/users/rajeevb2/followers","following_url":"https://api.github.com/users/rajeevb2/following{/other_user}","gists_url":"https://api.github.com/users/rajeevb2/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeevb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeevb2/subscriptions","organizations_url":"https://api.github.com/users/rajeevb2/orgs","repos_url":"https://api.github.com/users/rajeevb2/repos","events_url":"https://api.github.com/users/rajeevb2/events{/privacy}","received_events_url":"https://api.github.com/users/rajeevb2/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T04:22:59Z","updated_at":"2016-03-27T04:22:59Z","body":"I was able to get what I wanted by editing the commands.go file, hence I am closing this."}}