{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/928","labels_url":"https://api.github.com/repos/aspnet/Home/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/928/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/928/events","html_url":"https://github.com/aspnet/Home/issues/928","id":106747615,"number":928,"title":"dnx command line weblistener/kestrel","user":{"login":"grahamehorner","id":3924941,"avatar_url":"https://avatars.githubusercontent.com/u/3924941?v=3","gravatar_id":"","url":"https://api.github.com/users/grahamehorner","html_url":"https://github.com/grahamehorner","followers_url":"https://api.github.com/users/grahamehorner/followers","following_url":"https://api.github.com/users/grahamehorner/following{/other_user}","gists_url":"https://api.github.com/users/grahamehorner/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamehorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamehorner/subscriptions","organizations_url":"https://api.github.com/users/grahamehorner/orgs","repos_url":"https://api.github.com/users/grahamehorner/repos","events_url":"https://api.github.com/users/grahamehorner/events{/privacy}","received_events_url":"https://api.github.com/users/grahamehorner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-16T10:47:45Z","updated_at":"2015-09-30T21:26:25Z","closed_at":null,"body":"I'm not sure if I'm missing something or if it's possible to even do this; but how would you pass command line parameters to the startup method of a web application? does dnx pass the command line parameters to weblistner/kestrel which then get forwarded to the startup? or are they encapsulated in an object that is accessible like IHostingEnvironment, IApplicationEnvironment or IRuntimeEnvironment?"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/144547427","html_url":"https://github.com/aspnet/Home/issues/928#issuecomment-144547427","issue_url":"https://api.github.com/repos/aspnet/Home/issues/928","id":144547427,"user":{"login":"miguellira","id":1449255,"avatar_url":"https://avatars.githubusercontent.com/u/1449255?v=3","gravatar_id":"","url":"https://api.github.com/users/miguellira","html_url":"https://github.com/miguellira","followers_url":"https://api.github.com/users/miguellira/followers","following_url":"https://api.github.com/users/miguellira/following{/other_user}","gists_url":"https://api.github.com/users/miguellira/gists{/gist_id}","starred_url":"https://api.github.com/users/miguellira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguellira/subscriptions","organizations_url":"https://api.github.com/users/miguellira/orgs","repos_url":"https://api.github.com/users/miguellira/repos","events_url":"https://api.github.com/users/miguellira/events{/privacy}","received_events_url":"https://api.github.com/users/miguellira/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T21:26:25Z","updated_at":"2015-09-30T21:26:25Z","body":"To some extent, I agree with @grahamehorner. The arguments passed to `kestrel` are currently merged and passed along as an `IConfiguration` down to the `WebHostBuilder` ([see use of _config in this file](https://github.com/aspnet/Hosting/blob/a9e7948d726c1d66dd5a7865ebcb4f60a6ec6c0d/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs#L126-L136)) but never exposed.\r\n\r\nHowever, IMHO exposing an `IConfiguration` by default would result in a more confusing API. Especially, since `.AddCommandLine(Environment.GetCommandLineArgs());` already works in one framework."}}