{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/113","labels_url":"https://api.github.com/repos/dart-lang/fletch/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/fletch/issues/113/comments","events_url":"https://api.github.com/repos/dart-lang/fletch/issues/113/events","html_url":"https://github.com/dart-lang/fletch/issues/113","id":103268072,"number":113,"title":"Cannot pass arguments to main","user":{"login":"sgjesse","id":1343914,"avatar_url":"https://avatars.githubusercontent.com/u/1343914?v=3","gravatar_id":"","url":"https://api.github.com/users/sgjesse","html_url":"https://github.com/sgjesse","followers_url":"https://api.github.com/users/sgjesse/followers","following_url":"https://api.github.com/users/sgjesse/following{/other_user}","gists_url":"https://api.github.com/users/sgjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/sgjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgjesse/subscriptions","organizations_url":"https://api.github.com/users/sgjesse/orgs","repos_url":"https://api.github.com/users/sgjesse/repos","events_url":"https://api.github.com/users/sgjesse/events{/privacy}","received_events_url":"https://api.github.com/users/sgjesse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T13:19:13Z","updated_at":"2015-09-02T12:28:57Z","closed_at":"2015-09-02T12:28:57Z","body":"Take the following code (in the file `args.dart`):\r\n\r\n```\r\nmain(List<String> args) => print(args);\r\n```\r\n\r\nCompile and run with no arguments:\r\n\r\n```\r\nout/DebugIA32/fletch compile-and-run args.dart\r\nStarting session. Type 'help' for a list of commands.\r\n\r\n> r\r\n[]\r\n### process terminated\r\n```\r\n\r\nCompile and run _with_ arguments:\r\n\r\n```\r\nout/DebugIA32/fletch compile-and-run args.dart 1 2 3\r\nUnknown option: '1'\r\n```\r\n\r\nCompile it to a snapshot:\r\n\r\n```\r\nout/DebugIA32/fletch args.dart compile-and-run --out args.snapshot\r\n```\r\n\r\nRun with no arguments:\r\n\r\n```\r\nout/DebugIA32/fletch-vm args.snapshot\r\n[]\r\n```\r\n\r\nRun _with_ arguments:\r\n\r\n```\r\nout/DebugIA32/fletch-vm args.snapshot 1 2 3\r\nERROR: Cannot open 3\r\nWaiting for compiler on 127.0.0.1:40380\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/comments/137056889","html_url":"https://github.com/dart-lang/fletch/issues/113#issuecomment-137056889","issue_url":"https://api.github.com/repos/dart-lang/fletch/issues/113","id":137056889,"user":{"login":"skabet","id":22043,"avatar_url":"https://avatars.githubusercontent.com/u/22043?v=3","gravatar_id":"","url":"https://api.github.com/users/skabet","html_url":"https://github.com/skabet","followers_url":"https://api.github.com/users/skabet/followers","following_url":"https://api.github.com/users/skabet/following{/other_user}","gists_url":"https://api.github.com/users/skabet/gists{/gist_id}","starred_url":"https://api.github.com/users/skabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabet/subscriptions","organizations_url":"https://api.github.com/users/skabet/orgs","repos_url":"https://api.github.com/users/skabet/repos","events_url":"https://api.github.com/users/skabet/events{/privacy}","received_events_url":"https://api.github.com/users/skabet/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T12:28:57Z","updated_at":"2015-09-02T12:28:57Z","body":"Duplicate of issue 18."}}