{"action":"created","issue":{"url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/17","repository_url":"https://api.github.com/repos/ligershark/mutant-chicken","labels_url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/17/comments","events_url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/17/events","html_url":"https://github.com/ligershark/mutant-chicken/issues/17","id":152039027,"number":17,"title":"Passing in unknown option shows a bad error","user":{"login":"sayedihashimi","id":1283154,"avatar_url":"https://avatars.githubusercontent.com/u/1283154?v=3","gravatar_id":"","url":"https://api.github.com/users/sayedihashimi","html_url":"https://github.com/sayedihashimi","followers_url":"https://api.github.com/users/sayedihashimi/followers","following_url":"https://api.github.com/users/sayedihashimi/following{/other_user}","gists_url":"https://api.github.com/users/sayedihashimi/gists{/gist_id}","starred_url":"https://api.github.com/users/sayedihashimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayedihashimi/subscriptions","organizations_url":"https://api.github.com/users/sayedihashimi/orgs","repos_url":"https://api.github.com/users/sayedihashimi/repos","events_url":"https://api.github.com/users/sayedihashimi/events{/privacy}","received_events_url":"https://api.github.com/users/sayedihashimi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ligershark/mutant-chicken/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ligershark/mutant-chicken/milestones/1","html_url":"https://github.com/ligershark/mutant-chicken/milestones/1.0.0-rtm","labels_url":"https://api.github.com/repos/ligershark/mutant-chicken/milestones/1/labels","id":1740089,"number":1,"title":"1.0.0-rtm","description":"","creator":{"login":"sayedihashimi","id":1283154,"avatar_url":"https://avatars.githubusercontent.com/u/1283154?v=3","gravatar_id":"","url":"https://api.github.com/users/sayedihashimi","html_url":"https://github.com/sayedihashimi","followers_url":"https://api.github.com/users/sayedihashimi/followers","following_url":"https://api.github.com/users/sayedihashimi/following{/other_user}","gists_url":"https://api.github.com/users/sayedihashimi/gists{/gist_id}","starred_url":"https://api.github.com/users/sayedihashimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayedihashimi/subscriptions","organizations_url":"https://api.github.com/users/sayedihashimi/orgs","repos_url":"https://api.github.com/users/sayedihashimi/repos","events_url":"https://api.github.com/users/sayedihashimi/events{/privacy}","received_events_url":"https://api.github.com/users/sayedihashimi/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-04-30T16:32:15Z","updated_at":"2016-04-30T17:18:26Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-30T16:21:05Z","updated_at":"2016-04-30T17:19:30Z","closed_at":null,"body":"When an unknown option is passed we currently show an error message. We should improve this. I've given some examples of how `dotnet` handles this.\r\n\r\n```\r\nc:\\Data\\mycode\\mutant-chicken>dotnet new3 source --unknownoption\r\nUnrecognized option '--unknownoption'\r\n   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName)\r\n   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)\r\n   at dotnet_new3.Program.Main(String[] args) in c:\\Data\\mycode\\mutant-chicken\\src\\dotnet-new3\\Program.cs:line 59\r\n```\r\n\r\nCompare this to passing a bad option to `dotnet`.\r\n\r\n```\r\n>dotnet restore --unknown\r\nSpecify --help for a list of available options and commands.\r\nerror: Unrecognized option '--unknown'\r\n```\r\n\r\n```\r\n>dotnet --unknownffff\r\nUnknown option: --unknownffff\r\n.NET Command Line Tools (1.0.0-rc2-002543)\r\nUsage: dotnet [common-options] [command] [arguments]\r\n\r\nArguments:\r\n  [command]     The command to execute\r\n  [arguments]   Arguments to pass to the command\r\n\r\nCommon Options (passed before the command):\r\n  -v|--verbose  Enable verbose output\r\n  --version     Display .NET CLI Version Number\r\n  --info        Display .NET CLI Info\r\n\r\nCommon Commands:\r\n  new           Initialize a basic .NET project\r\n  restore       Restore dependencies specified in the .NET project\r\n  build         Builds a .NET project\r\n  publish       Publishes a .NET project for deployment (including the runtime)\r\n  run           Compiles and immediately executes a .NET project\r\n  test          Runs unit tests using the test runner specified in the project\r\n  pack          Creates a NuGet package\r\n```"},"comment":{"url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/comments/215979991","html_url":"https://github.com/ligershark/mutant-chicken/issues/17#issuecomment-215979991","issue_url":"https://api.github.com/repos/ligershark/mutant-chicken/issues/17","id":215979991,"user":{"login":"mlorbetske","id":1414993,"avatar_url":"https://avatars.githubusercontent.com/u/1414993?v=3","gravatar_id":"","url":"https://api.github.com/users/mlorbetske","html_url":"https://github.com/mlorbetske","followers_url":"https://api.github.com/users/mlorbetske/followers","following_url":"https://api.github.com/users/mlorbetske/following{/other_user}","gists_url":"https://api.github.com/users/mlorbetske/gists{/gist_id}","starred_url":"https://api.github.com/users/mlorbetske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlorbetske/subscriptions","organizations_url":"https://api.github.com/users/mlorbetske/orgs","repos_url":"https://api.github.com/users/mlorbetske/repos","events_url":"https://api.github.com/users/mlorbetske/events{/privacy}","received_events_url":"https://api.github.com/users/mlorbetske/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T17:19:30Z","updated_at":"2016-04-30T17:19:30Z","body":"Looks like this is blocked by https://github.com/dotnet/cli/issues/2728"}}