{"action":"created","issue":{"url":"https://api.github.com/repos/garden-io/garden/issues/151","repository_url":"https://api.github.com/repos/garden-io/garden","labels_url":"https://api.github.com/repos/garden-io/garden/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/garden-io/garden/issues/151/comments","events_url":"https://api.github.com/repos/garden-io/garden/issues/151/events","html_url":"https://github.com/garden-io/garden/issues/151","id":329616419,"node_id":"MDU6SXNzdWUzMjk2MTY0MTk=","number":151,"title":"garden cli fails when using -log global option but not when using --loglevel","user":{"login":"Deepakkothandan","id":7385180,"node_id":"MDQ6VXNlcjczODUxODA=","avatar_url":"https://avatars2.githubusercontent.com/u/7385180?v=4","gravatar_id":"","url":"https://api.github.com/users/Deepakkothandan","html_url":"https://github.com/Deepakkothandan","followers_url":"https://api.github.com/users/Deepakkothandan/followers","following_url":"https://api.github.com/users/Deepakkothandan/following{/other_user}","gists_url":"https://api.github.com/users/Deepakkothandan/gists{/gist_id}","starred_url":"https://api.github.com/users/Deepakkothandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deepakkothandan/subscriptions","organizations_url":"https://api.github.com/users/Deepakkothandan/orgs","repos_url":"https://api.github.com/users/Deepakkothandan/repos","events_url":"https://api.github.com/users/Deepakkothandan/events{/privacy}","received_events_url":"https://api.github.com/users/Deepakkothandan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T20:40:05Z","updated_at":"2018-06-06T08:37:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When running garden with the `-log` option, garden fails with the below error, but it works when using `--loglevel`\r\n\r\n```\r\nnode ~/devel/node/garden/dist/src/bin/garden.js status -log verbose\r\n\r\nUSAGE\r\n\r\n  garden status [options]\r\n\r\nGlobal options\r\n  -h, --help        Show help\r\n                    [boolean]\r\n....\r\n\r\n  -log, --loglevel  Set logger level.\r\n                    [enum] [default: info] [error, warn, info, verbose, debug, silly]\r\n\r\n\r\n  -o, --output      Output command result in specified format (note: disables progress\r\n                    logging).\r\n                    [enum] [json, yaml]\r\n\r\nValue \"\" is invalid for argument o or output. Choices are: json, yaml\r\n```"},"comment":{"url":"https://api.github.com/repos/garden-io/garden/issues/comments/394989362","html_url":"https://github.com/garden-io/garden/issues/151#issuecomment-394989362","issue_url":"https://api.github.com/repos/garden-io/garden/issues/151","id":394989362,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDk4OTM2Mg==","user":{"login":"eysi09","id":5373776,"node_id":"MDQ6VXNlcjUzNzM3NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5373776?v=4","gravatar_id":"","url":"https://api.github.com/users/eysi09","html_url":"https://github.com/eysi09","followers_url":"https://api.github.com/users/eysi09/followers","following_url":"https://api.github.com/users/eysi09/following{/other_user}","gists_url":"https://api.github.com/users/eysi09/gists{/gist_id}","starred_url":"https://api.github.com/users/eysi09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eysi09/subscriptions","organizations_url":"https://api.github.com/users/eysi09/orgs","repos_url":"https://api.github.com/users/eysi09/repos","events_url":"https://api.github.com/users/eysi09/events{/privacy}","received_events_url":"https://api.github.com/users/eysi09/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T08:37:29Z","updated_at":"2018-06-06T08:37:29Z","author_association":"COLLABORATOR","body":"Hi 👋 @Deepakkothandan \r\n\r\nThe correct syntax for non-boolean options is `garden <command> --option=value` (note the `=`sign). E.g.:\r\n\r\n```\r\ngarden status -log=verbose\r\n```\r\nor\r\n```\r\ngarden status --loglevel=verbose\r\n```\r\nIf the option is boolean you can skip the value, e.g.:\r\n```\r\ngarden build --force\r\n``` \r\nHowever, that doesn't explain the inconsistent error message. So, thanks for pointing that out. I'll look into it.\r\n\r\nP.S. Positional arguments don't use the `=` sign. So for completeness, the entire syntax looks like this: `garden <command> arg1 arg2 --opt1=val1 --opt2=val2l`. E.g.:\r\n\r\n```\r\ngarden deploy hello-container --force --loglevel=verbose\r\n```\r\nThe options can be placed anywhere, e.g. before the command or between the command and it's arguments. "}}
{"actor":{"display_login":"eysi09"}}