{"action":"created","issue":{"url":"https://api.github.com/repos/rdio/jsfmt/issues/147","labels_url":"https://api.github.com/repos/rdio/jsfmt/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/rdio/jsfmt/issues/147/comments","events_url":"https://api.github.com/repos/rdio/jsfmt/issues/147/events","html_url":"https://github.com/rdio/jsfmt/pull/147","id":73724783,"number":147,"title":"add showing help on if execute with no arguments","user":{"login":"tgfjt","id":2628239,"avatar_url":"https://avatars.githubusercontent.com/u/2628239?v=3","gravatar_id":"","url":"https://api.github.com/users/tgfjt","html_url":"https://github.com/tgfjt","followers_url":"https://api.github.com/users/tgfjt/followers","following_url":"https://api.github.com/users/tgfjt/following{/other_user}","gists_url":"https://api.github.com/users/tgfjt/gists{/gist_id}","starred_url":"https://api.github.com/users/tgfjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgfjt/subscriptions","organizations_url":"https://api.github.com/users/tgfjt/orgs","repos_url":"https://api.github.com/users/tgfjt/repos","events_url":"https://api.github.com/users/tgfjt/events{/privacy}","received_events_url":"https://api.github.com/users/tgfjt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T20:18:05Z","updated_at":"2015-07-16T23:08:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rdio/jsfmt/pulls/147","html_url":"https://github.com/rdio/jsfmt/pull/147","diff_url":"https://github.com/rdio/jsfmt/pull/147.diff","patch_url":"https://github.com/rdio/jsfmt/pull/147.patch"},"body":"fix #145 \r\n\r\nshowing help message in these case:\r\n* empty argument\r\n* empty stdin\r\n\r\n@brettlangdon  How about this? Could you please review?\r\n\r\n```\r\n$ cat test-noargument.js\r\nvar a = function (a,b,c, d)\r\n{\r\n  return a+b+c+d;\r\n}\r\n\r\n$ cat test-noargument.js | ./bin/jsfmt\r\nvar a = function(a, b, c, d) {\r\n  return a + b + c + d;\r\n}\r\n\r\n$ ./bin/jsfmt test-noargument.js\r\nvar a = function(a, b, c, d) {\r\n  return a + b + c + d;\r\n}\r\n\r\n$ ./bin/jsfmt\r\nUsage:\r\n  jsfmt [--no-format] [--save-ast] [--diff|--list|--write] [--validate] [--rewrite PATTERN|--search PATTERN] [--json|--ast] [<file>...]\r\n  jsfmt (--version | --help)\r\n\r\nOptions:\r\n  -h --help                      Show this help text\r\n  --version                      Show jsfmt version\r\n  -d --diff                      Show diff against original file\r\n  -l --list                      List the files which differ from jsfmt output\r\n  -v --validate                  Validate the input file(s)\r\n  --no-format                    Do not format the input file(s)\r\n  -w --write                     Overwrite the original file with jsfmt output\r\n  -j --json                      Tell jsfmt that the file being parsed is json\r\n  -a --ast                       Tell jsfmt that the file being parsed is in JSON AST\r\n  --save-ast                     Output the resulting js in JSON AST format\r\n  -r=PATTERN --rewrite PATTERN   Rewrite rule (e.g., 'a.slice(b, len(a) -> a.slice(b)')\r\n  -s=PATTERN --search PATTERN    Search rule (e.g., 'a.slice')\r\n```"},"comment":{"url":"https://api.github.com/repos/rdio/jsfmt/issues/comments/122127043","html_url":"https://github.com/rdio/jsfmt/pull/147#issuecomment-122127043","issue_url":"https://api.github.com/repos/rdio/jsfmt/issues/147","id":122127043,"user":{"login":"tgfjt","id":2628239,"avatar_url":"https://avatars.githubusercontent.com/u/2628239?v=3","gravatar_id":"","url":"https://api.github.com/users/tgfjt","html_url":"https://github.com/tgfjt","followers_url":"https://api.github.com/users/tgfjt/followers","following_url":"https://api.github.com/users/tgfjt/following{/other_user}","gists_url":"https://api.github.com/users/tgfjt/gists{/gist_id}","starred_url":"https://api.github.com/users/tgfjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgfjt/subscriptions","organizations_url":"https://api.github.com/users/tgfjt/orgs","repos_url":"https://api.github.com/users/tgfjt/repos","events_url":"https://api.github.com/users/tgfjt/events{/privacy}","received_events_url":"https://api.github.com/users/tgfjt/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T23:08:20Z","updated_at":"2015-07-16T23:08:20Z","body":"Thanks! No I don't mind.:bowtie:"}}