{"action":"created","comment":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/62612975","id":62612975,"diff_hunk":"@@ -85,11 +98,32 @@ void runCommand(AlluxioURI path, CommandLine cl) throws IOException {\n \n   @Override\n   public String getUsage() {\n-    return \"tail <path>\";\n+    return \"tail -C <number of bytes> <path>\";\n   }\n \n   @Override\n   public String getDescription() {\n-    return \"Prints the file's last 1KB of contents to the console.\";\n+    return \"Prints the file's last user specified number of bytes (by default, 1KB) of contents \"\n+        + \"to the console.\";\n+  }\n+\n+  @Override\n+  protected Options getOptions() {\n+    Option bytesOption =\n+        Option.builder(\"C\")\n+              .required(false)\n+              .numberOfArgs(1)\n+              .desc(\"user specified option\")\n+              .build();\n+    return new Options().addOption(bytesOption);\n+  }\n+\n+  @Override\n+  public boolean validateArgs(String... args) {","path":"shell/src/main/java/alluxio/shell/command/TailCommand.java","position":null,"original_position":75,"commit_id":"291bc1c258bb9bd4420306bfa0202c22565026b9","original_commit_id":"f9701a40c44b47b18b994775986ecf5ac9daad79","user":{"login":"xgong","id":3181402,"avatar_url":"https://avatars.githubusercontent.com/u/3181402?v=3","gravatar_id":"","url":"https://api.github.com/users/xgong","html_url":"https://github.com/xgong","followers_url":"https://api.github.com/users/xgong/followers","following_url":"https://api.github.com/users/xgong/following{/other_user}","gists_url":"https://api.github.com/users/xgong/gists{/gist_id}","starred_url":"https://api.github.com/users/xgong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgong/subscriptions","organizations_url":"https://api.github.com/users/xgong/orgs","repos_url":"https://api.github.com/users/xgong/repos","events_url":"https://api.github.com/users/xgong/events{/privacy}","received_events_url":"https://api.github.com/users/xgong/received_events","type":"User","site_admin":false},"body":"@aaudiber \r\noops. I am sorry. I have some misunderstandings here. I thought that we are talking about overriding the function getOptions(). \r\n\r\nYes, you are right. We do not need to override validateArgs. Removing it.","created_at":"2016-05-10T05:07:13Z","updated_at":"2016-05-10T05:07:13Z","html_url":"https://github.com/Alluxio/alluxio/pull/3191#discussion_r62612975","pull_request_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191","_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/62612975"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/3191#discussion_r62612975"},"pull_request":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191"}}},"pull_request":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191","id":69263051,"html_url":"https://github.com/Alluxio/alluxio/pull/3191","diff_url":"https://github.com/Alluxio/alluxio/pull/3191.diff","patch_url":"https://github.com/Alluxio/alluxio/pull/3191.patch","issue_url":"https://api.github.com/repos/Alluxio/alluxio/issues/3191","number":3191,"state":"open","locked":false,"title":"[ALLUXIO-1919] Add -c option to alluxio.shell.command.TailCommand","user":{"login":"xgong","id":3181402,"avatar_url":"https://avatars.githubusercontent.com/u/3181402?v=3","gravatar_id":"","url":"https://api.github.com/users/xgong","html_url":"https://github.com/xgong","followers_url":"https://api.github.com/users/xgong/followers","following_url":"https://api.github.com/users/xgong/following{/other_user}","gists_url":"https://api.github.com/users/xgong/gists{/gist_id}","starred_url":"https://api.github.com/users/xgong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgong/subscriptions","organizations_url":"https://api.github.com/users/xgong/orgs","repos_url":"https://api.github.com/users/xgong/repos","events_url":"https://api.github.com/users/xgong/events{/privacy}","received_events_url":"https://api.github.com/users/xgong/received_events","type":"User","site_admin":false},"body":"https://alluxio.atlassian.net/browse/ALLUXIO-1919\r\nAlluxio-1919. Add -c option to alluxio.shell.command.TailCommand","created_at":"2016-05-08T07:42:45Z","updated_at":"2016-05-10T05:07:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43de114b2fc5d7ee92cd76d970bb9b268cd781e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191/commits","review_comments_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191/comments","review_comment_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/issues/3191/comments","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/291bc1c258bb9bd4420306bfa0202c22565026b9","head":{"label":"xgong:Alluxio-1919","ref":"Alluxio-1919","sha":"291bc1c258bb9bd4420306bfa0202c22565026b9","user":{"login":"xgong","id":3181402,"avatar_url":"https://avatars.githubusercontent.com/u/3181402?v=3","gravatar_id":"","url":"https://api.github.com/users/xgong","html_url":"https://github.com/xgong","followers_url":"https://api.github.com/users/xgong/followers","following_url":"https://api.github.com/users/xgong/following{/other_user}","gists_url":"https://api.github.com/users/xgong/gists{/gist_id}","starred_url":"https://api.github.com/users/xgong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgong/subscriptions","organizations_url":"https://api.github.com/users/xgong/orgs","repos_url":"https://api.github.com/users/xgong/repos","events_url":"https://api.github.com/users/xgong/events{/privacy}","received_events_url":"https://api.github.com/users/xgong/received_events","type":"User","site_admin":false},"repo":{"id":58300528,"name":"alluxio","full_name":"xgong/alluxio","owner":{"login":"xgong","id":3181402,"avatar_url":"https://avatars.githubusercontent.com/u/3181402?v=3","gravatar_id":"","url":"https://api.github.com/users/xgong","html_url":"https://github.com/xgong","followers_url":"https://api.github.com/users/xgong/followers","following_url":"https://api.github.com/users/xgong/following{/other_user}","gists_url":"https://api.github.com/users/xgong/gists{/gist_id}","starred_url":"https://api.github.com/users/xgong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgong/subscriptions","organizations_url":"https://api.github.com/users/xgong/orgs","repos_url":"https://api.github.com/users/xgong/repos","events_url":"https://api.github.com/users/xgong/events{/privacy}","received_events_url":"https://api.github.com/users/xgong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xgong/alluxio","description":"Alluxio, formerly Tachyon, Memory-Speed Virtual Distributed Storage System","fork":true,"url":"https://api.github.com/repos/xgong/alluxio","forks_url":"https://api.github.com/repos/xgong/alluxio/forks","keys_url":"https://api.github.com/repos/xgong/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xgong/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xgong/alluxio/teams","hooks_url":"https://api.github.com/repos/xgong/alluxio/hooks","issue_events_url":"https://api.github.com/repos/xgong/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/xgong/alluxio/events","assignees_url":"https://api.github.com/repos/xgong/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/xgong/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/xgong/alluxio/tags","blobs_url":"https://api.github.com/repos/xgong/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xgong/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xgong/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/xgong/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xgong/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/xgong/alluxio/languages","stargazers_url":"https://api.github.com/repos/xgong/alluxio/stargazers","contributors_url":"https://api.github.com/repos/xgong/alluxio/contributors","subscribers_url":"https://api.github.com/repos/xgong/alluxio/subscribers","subscription_url":"https://api.github.com/repos/xgong/alluxio/subscription","commits_url":"https://api.github.com/repos/xgong/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/xgong/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/xgong/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/xgong/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/xgong/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/xgong/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xgong/alluxio/merges","archive_url":"https://api.github.com/repos/xgong/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xgong/alluxio/downloads","issues_url":"https://api.github.com/repos/xgong/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/xgong/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/xgong/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/xgong/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xgong/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/xgong/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/xgong/alluxio/deployments","created_at":"2016-05-08T07:00:16Z","updated_at":"2016-05-08T07:00:22Z","pushed_at":"2016-05-10T05:04:25Z","git_url":"git://github.com/xgong/alluxio.git","ssh_url":"git@github.com:xgong/alluxio.git","clone_url":"https://github.com/xgong/alluxio.git","svn_url":"https://github.com/xgong/alluxio","homepage":"http://www.alluxio.org/","size":48815,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Alluxio:master","ref":"master","sha":"4e4034f37b811fb3bb94d08a6d91fddff6ccfba9","user":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars.githubusercontent.com/u/16203694?v=3","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"alluxio","full_name":"Alluxio/alluxio","owner":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars.githubusercontent.com/u/16203694?v=3","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Alluxio/alluxio","description":"Alluxio, formerly Tachyon, Memory-Speed Virtual Distributed Storage System","fork":false,"url":"https://api.github.com/repos/Alluxio/alluxio","forks_url":"https://api.github.com/repos/Alluxio/alluxio/forks","keys_url":"https://api.github.com/repos/Alluxio/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alluxio/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alluxio/alluxio/teams","hooks_url":"https://api.github.com/repos/Alluxio/alluxio/hooks","issue_events_url":"https://api.github.com/repos/Alluxio/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/Alluxio/alluxio/events","assignees_url":"https://api.github.com/repos/Alluxio/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/Alluxio/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/Alluxio/alluxio/tags","blobs_url":"https://api.github.com/repos/Alluxio/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alluxio/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alluxio/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alluxio/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/Alluxio/alluxio/languages","stargazers_url":"https://api.github.com/repos/Alluxio/alluxio/stargazers","contributors_url":"https://api.github.com/repos/Alluxio/alluxio/contributors","subscribers_url":"https://api.github.com/repos/Alluxio/alluxio/subscribers","subscription_url":"https://api.github.com/repos/Alluxio/alluxio/subscription","commits_url":"https://api.github.com/repos/Alluxio/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alluxio/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alluxio/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alluxio/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/Alluxio/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alluxio/alluxio/merges","archive_url":"https://api.github.com/repos/Alluxio/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alluxio/alluxio/downloads","issues_url":"https://api.github.com/repos/Alluxio/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/Alluxio/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/Alluxio/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/Alluxio/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alluxio/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/Alluxio/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/Alluxio/alluxio/deployments","created_at":"2012-12-21T17:43:46Z","updated_at":"2016-05-07T13:38:10Z","pushed_at":"2016-05-10T05:04:27Z","git_url":"git://github.com/Alluxio/alluxio.git","ssh_url":"git@github.com:Alluxio/alluxio.git","clone_url":"https://github.com/Alluxio/alluxio.git","svn_url":"https://github.com/Alluxio/alluxio","homepage":"http://www.alluxio.org/","size":80368,"stargazers_count":2331,"watchers_count":2331,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":917,"mirror_url":null,"open_issues_count":22,"forks":917,"open_issues":22,"watchers":2331,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/3191"},"issue":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/3191"},"comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/3191/comments"},"review_comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191/comments"},"review_comment":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/3191/commits"},"statuses":{"href":"https://api.github.com/repos/Alluxio/alluxio/statuses/291bc1c258bb9bd4420306bfa0202c22565026b9"}}}}