{"action":"opened","issue":{"url":"https://api.github.com/repos/zalando-stups/senza/issues/130","labels_url":"https://api.github.com/repos/zalando-stups/senza/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/zalando-stups/senza/issues/130/comments","events_url":"https://api.github.com/repos/zalando-stups/senza/issues/130/events","html_url":"https://github.com/zalando-stups/senza/issues/130","id":113437820,"number":130,"title":"Custom arguments problems are not displayed correctly anymore.","user":{"login":"sarnowski","id":294104,"avatar_url":"https://avatars.githubusercontent.com/u/294104?v=3","gravatar_id":"","url":"https://api.github.com/users/sarnowski","html_url":"https://github.com/sarnowski","followers_url":"https://api.github.com/users/sarnowski/followers","following_url":"https://api.github.com/users/sarnowski/following{/other_user}","gists_url":"https://api.github.com/users/sarnowski/gists{/gist_id}","starred_url":"https://api.github.com/users/sarnowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarnowski/subscriptions","organizations_url":"https://api.github.com/users/sarnowski/orgs","repos_url":"https://api.github.com/users/sarnowski/repos","events_url":"https://api.github.com/users/sarnowski/events{/privacy}","received_events_url":"https://api.github.com/users/sarnowski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zalando-stups/senza/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T19:54:44Z","updated_at":"2015-10-26T19:54:44Z","closed_at":null,"body":"Senza definition to reproduce:\r\n\r\n```yaml\r\nSenzaInfo:\r\n  StackName: senza-args-test\r\n  Parameters:\r\n  - Arg1:\r\n      Description: noop arg\r\n  - Arg2:\r\n      Description: noop arg\r\n  - Arg3:\r\n      Description: noop arg\r\n  - Arg4:\r\n      Description: noop arg\r\n```\r\n\r\nNow call `senza print` which requires properly filled in arguments of our definition:\r\n\r\n```bash\r\n$ senza print senza-parameter-test.yaml\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing argument \"version\".\r\n```\r\n\r\nFirst regression comes in the \"Usage\" line: Senza doesn't print out the defined arguments anymore but only a generic \"[PARAMETER]\" block which isn't helpful. Expected message:\r\n\r\n```bash\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"version\".\r\n```\r\n\r\nIf specifying more arguments, the error message becomes random:\r\n\r\n```bash\r\n$ senza print senza-parameter-test.yaml 0\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg3\"\r\n\r\n$ senza print senza-parameter-test.yaml 0\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg1\"\r\n\r\n$ senza print senza-parameter-test.yaml 0\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg4\"\r\n\r\n$ senza print senza-parameter-test.yaml 0\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg2\"\r\n```\r\n\r\nAlso when specifying more parameters, it doesn't get better:\r\n\r\n```bash\r\n$ senza print senza-parameter-test.yaml 0 1 2\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg4\"\r\n\r\n$ senza print senza-parameter-test.yaml 0 1 2\r\nUsage: senza print [OPTIONS] DEFINITION VERSION [PARAMETER]...\r\n\r\nError: Missing parameter \"Arg3\"\r\n```\r\n\r\nPrevious behaviour was like that:\r\n\r\n```bash\r\n$ senza print senza-parameter-test.yaml\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"version\".\r\n\r\n$ senza print senza-parameter-test.yaml 0\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"arg1\".\r\n\r\n$ senza print senza-parameter-test.yaml 0 1\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"arg2\".\r\n\r\n$ senza print senza-parameter-test.yaml 0 1 2\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"arg3\".\r\n\r\n$ senza print senza-parameter-test.yaml 0 1 2 3\r\nUsage: senza print [OPTIONS] DEFINITION VERSION arg1 arg2 arg3 arg4\r\n\r\nError: Missing argument \"arg4\".\r\n\r\n$ senza print senza-parameter-test.yaml 0 1 2 3 4\r\n< all args passed, print! >\r\n```\r\n\r\nThis regression is very unpleasant because depending of the amount of arguments of a senza definition, you cannot find out what to pass to the command and in which order."}}