{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/222","labels_url":"https://api.github.com/repos/mholt/caddy/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/222/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/222/events","html_url":"https://github.com/mholt/caddy/issues/222","id":102551751,"number":222,"title":"Suggestion: Command line flag for \"browse\"","user":{"login":"kkovacs","id":118010,"avatar_url":"https://avatars.githubusercontent.com/u/118010?v=3","gravatar_id":"","url":"https://api.github.com/users/kkovacs","html_url":"https://github.com/kkovacs","followers_url":"https://api.github.com/users/kkovacs/followers","following_url":"https://api.github.com/users/kkovacs/following{/other_user}","gists_url":"https://api.github.com/users/kkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/kkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkovacs/subscriptions","organizations_url":"https://api.github.com/users/kkovacs/orgs","repos_url":"https://api.github.com/users/kkovacs/repos","events_url":"https://api.github.com/users/kkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/kkovacs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/suggestion","name":"suggestion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-22T17:11:27Z","updated_at":"2015-09-06T00:08:48Z","closed_at":null,"body":"It would be nice to have a command line flag to turn on \"browse\".\r\n\r\nI often use caddy to quickly transfer files from one computer to another, and to have browsing functionality, I have to start it for example: \r\n\r\n\techo \"0.0.0.0:2015\\nbrowse\" | caddy\r\n\r\nIt would be better just to write\r\n\r\n\tcaddy -b\r\n\r\nor similar :)\r\n\r\nKeep up the good work!"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/138010834","html_url":"https://github.com/mholt/caddy/issues/222#issuecomment-138010834","issue_url":"https://api.github.com/repos/mholt/caddy/issues/222","id":138010834,"user":{"login":"shazow","id":6292,"avatar_url":"https://avatars.githubusercontent.com/u/6292?v=3","gravatar_id":"","url":"https://api.github.com/users/shazow","html_url":"https://github.com/shazow","followers_url":"https://api.github.com/users/shazow/followers","following_url":"https://api.github.com/users/shazow/following{/other_user}","gists_url":"https://api.github.com/users/shazow/gists{/gist_id}","starred_url":"https://api.github.com/users/shazow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shazow/subscriptions","organizations_url":"https://api.github.com/users/shazow/orgs","repos_url":"https://api.github.com/users/shazow/repos","events_url":"https://api.github.com/users/shazow/events{/privacy}","received_events_url":"https://api.github.com/users/shazow/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T00:08:48Z","updated_at":"2015-09-06T00:08:48Z","body":"Right, you'll need to quote anything that is not a single word. This should work with the `flag` module without any extra work, though:\r\n\r\n```\r\n$ caddy -quiet -host=abc.com -port=1234 \"header / { -host }\"\r\n```\r\n\r\nAlthough, if we use commas as separators, comma value escaping will still be required, whereas quote position arg escaping is already done by every flag parser."}}