{"action":"created","comment":{"url":"https://api.github.com/repos/Netflix/genie/pulls/comments/227500086","pull_request_review_id":167556436,"id":227500086,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzUwMDA4Ng==","diff_hunk":"@@ -0,0 +1,66 @@\n+/*\n+ *\n+ *  Copyright 2018 Netflix, Inc.\n+ *\n+ *     Licensed under the Apache License, Version 2.0 (the \"License\");\n+ *     you may not use this file except in compliance with the License.\n+ *     You may obtain a copy of the License at\n+ *\n+ *         http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *     Unless required by applicable law or agreed to in writing, software\n+ *     distributed under the License is distributed on an \"AS IS\" BASIS,\n+ *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *     See the License for the specific language governing permissions and\n+ *     limitations under the License.\n+ *\n+ */\n+\n+package com.netflix.genie.agent.cli;\n+\n+import java.util.Arrays;\n+\n+/**\n+ * CLI utility methods.\n+ *\n+ * @author mprimi\n+ * @since 4.0.0\n+ */\n+public final class Util {\n+\n+    /**\n+     * Bare double dash is a command-line option conventionally used to delimit options from arguments.\n+     * See POSIX POSIX.1-2017 - Utility Conventions - Gudeline #10\n+     * http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html\n+     */\n+    static final String BARE_DOUBLE_DASH = \"--\";\n+    private static final String BARE_DOUBLE_DASH_REPLACEMENT = \"-//-\";\n+\n+    /**\n+     * Hidden constructor.\n+     */\n+    private Util() {\n+    }\n+\n+    /**\n+     * Replace all \"bare double dash\" arguments in the input array.\n+     * @param args the arguments array","path":"genie-agent/src/main/java/com/netflix/genie/agent/cli/Util.java","position":50,"original_position":47,"commit_id":"bb0f0ccbcd4712f662514c62d07a7e46d7fd964b","original_commit_id":"e3533b3873b6f5e7dea5b6bdb0112e587591893d","user":{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-10-23T17:54:48Z","updated_at":"2018-10-23T17:54:48Z","html_url":"https://github.com/Netflix/genie/pull/789#discussion_r227500086","pull_request_url":"https://api.github.com/repos/Netflix/genie/pulls/789","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Netflix/genie/pulls/comments/227500086"},"html":{"href":"https://github.com/Netflix/genie/pull/789#discussion_r227500086"},"pull_request":{"href":"https://api.github.com/repos/Netflix/genie/pulls/789"}},"in_reply_to_id":227230954},"pull_request":{"url":"https://api.github.com/repos/Netflix/genie/pulls/789","id":224858927,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODU4OTI3","html_url":"https://github.com/Netflix/genie/pull/789","diff_url":"https://github.com/Netflix/genie/pull/789.diff","patch_url":"https://github.com/Netflix/genie/pull/789.patch","issue_url":"https://api.github.com/repos/Netflix/genie/issues/789","number":789,"state":"open","locked":false,"title":"Arg parsing with separator and create job directory","user":{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-23T00:55:25Z","updated_at":"2018-10-23T17:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ee3ff0edeac4461ceb6d9aab643631a9cbcae57","assignee":{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false},"assignees":[{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"sumitnetflix","id":37452933,"node_id":"MDQ6VXNlcjM3NDUyOTMz","avatar_url":"https://avatars2.githubusercontent.com/u/37452933?v=4","gravatar_id":"","url":"https://api.github.com/users/sumitnetflix","html_url":"https://github.com/sumitnetflix","followers_url":"https://api.github.com/users/sumitnetflix/followers","following_url":"https://api.github.com/users/sumitnetflix/following{/other_user}","gists_url":"https://api.github.com/users/sumitnetflix/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitnetflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitnetflix/subscriptions","organizations_url":"https://api.github.com/users/sumitnetflix/orgs","repos_url":"https://api.github.com/users/sumitnetflix/repos","events_url":"https://api.github.com/users/sumitnetflix/events{/privacy}","received_events_url":"https://api.github.com/users/sumitnetflix/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":250307582,"node_id":"MDU6TGFiZWwyNTAzMDc1ODI=","url":"https://api.github.com/repos/Netflix/genie/labels/Improvement","name":"Improvement","color":"bfdadc","default":false}],"milestone":{"url":"https://api.github.com/repos/Netflix/genie/milestones/25","html_url":"https://github.com/Netflix/genie/milestone/25","labels_url":"https://api.github.com/repos/Netflix/genie/milestones/25/labels","id":2778855,"node_id":"MDk6TWlsZXN0b25lMjc3ODg1NQ==","number":25,"title":"4.0.0","description":"","creator":{"login":"tgianos","id":7377597,"node_id":"MDQ6VXNlcjczNzc1OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/7377597?v=4","gravatar_id":"","url":"https://api.github.com/users/tgianos","html_url":"https://github.com/tgianos","followers_url":"https://api.github.com/users/tgianos/followers","following_url":"https://api.github.com/users/tgianos/following{/other_user}","gists_url":"https://api.github.com/users/tgianos/gists{/gist_id}","starred_url":"https://api.github.com/users/tgianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgianos/subscriptions","organizations_url":"https://api.github.com/users/tgianos/orgs","repos_url":"https://api.github.com/users/tgianos/repos","events_url":"https://api.github.com/users/tgianos/events{/privacy}","received_events_url":"https://api.github.com/users/tgianos/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":93,"state":"open","created_at":"2017-09-19T20:43:22Z","updated_at":"2018-10-23T00:55:25Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Netflix/genie/pulls/789/commits","review_comments_url":"https://api.github.com/repos/Netflix/genie/pulls/789/comments","review_comment_url":"https://api.github.com/repos/Netflix/genie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Netflix/genie/issues/789/comments","statuses_url":"https://api.github.com/repos/Netflix/genie/statuses/bb0f0ccbcd4712f662514c62d07a7e46d7fd964b","head":{"label":"mprimi:arg-parsing-with-separator","ref":"arg-parsing-with-separator","sha":"bb0f0ccbcd4712f662514c62d07a7e46d7fd964b","user":{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false},"repo":{"id":90083748,"node_id":"MDEwOlJlcG9zaXRvcnk5MDA4Mzc0OA==","name":"genie","full_name":"mprimi/genie","private":false,"owner":{"login":"mprimi","id":6885259,"node_id":"MDQ6VXNlcjY4ODUyNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6885259?v=4","gravatar_id":"","url":"https://api.github.com/users/mprimi","html_url":"https://github.com/mprimi","followers_url":"https://api.github.com/users/mprimi/followers","following_url":"https://api.github.com/users/mprimi/following{/other_user}","gists_url":"https://api.github.com/users/mprimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mprimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprimi/subscriptions","organizations_url":"https://api.github.com/users/mprimi/orgs","repos_url":"https://api.github.com/users/mprimi/repos","events_url":"https://api.github.com/users/mprimi/events{/privacy}","received_events_url":"https://api.github.com/users/mprimi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mprimi/genie","description":"Distributed Big Data Orchestration Service","fork":true,"url":"https://api.github.com/repos/mprimi/genie","forks_url":"https://api.github.com/repos/mprimi/genie/forks","keys_url":"https://api.github.com/repos/mprimi/genie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mprimi/genie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mprimi/genie/teams","hooks_url":"https://api.github.com/repos/mprimi/genie/hooks","issue_events_url":"https://api.github.com/repos/mprimi/genie/issues/events{/number}","events_url":"https://api.github.com/repos/mprimi/genie/events","assignees_url":"https://api.github.com/repos/mprimi/genie/assignees{/user}","branches_url":"https://api.github.com/repos/mprimi/genie/branches{/branch}","tags_url":"https://api.github.com/repos/mprimi/genie/tags","blobs_url":"https://api.github.com/repos/mprimi/genie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mprimi/genie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mprimi/genie/git/refs{/sha}","trees_url":"https://api.github.com/repos/mprimi/genie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mprimi/genie/statuses/{sha}","languages_url":"https://api.github.com/repos/mprimi/genie/languages","stargazers_url":"https://api.github.com/repos/mprimi/genie/stargazers","contributors_url":"https://api.github.com/repos/mprimi/genie/contributors","subscribers_url":"https://api.github.com/repos/mprimi/genie/subscribers","subscription_url":"https://api.github.com/repos/mprimi/genie/subscription","commits_url":"https://api.github.com/repos/mprimi/genie/commits{/sha}","git_commits_url":"https://api.github.com/repos/mprimi/genie/git/commits{/sha}","comments_url":"https://api.github.com/repos/mprimi/genie/comments{/number}","issue_comment_url":"https://api.github.com/repos/mprimi/genie/issues/comments{/number}","contents_url":"https://api.github.com/repos/mprimi/genie/contents/{+path}","compare_url":"https://api.github.com/repos/mprimi/genie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mprimi/genie/merges","archive_url":"https://api.github.com/repos/mprimi/genie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mprimi/genie/downloads","issues_url":"https://api.github.com/repos/mprimi/genie/issues{/number}","pulls_url":"https://api.github.com/repos/mprimi/genie/pulls{/number}","milestones_url":"https://api.github.com/repos/mprimi/genie/milestones{/number}","notifications_url":"https://api.github.com/repos/mprimi/genie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mprimi/genie/labels{/name}","releases_url":"https://api.github.com/repos/mprimi/genie/releases{/id}","deployments_url":"https://api.github.com/repos/mprimi/genie/deployments","created_at":"2017-05-02T22:31:41Z","updated_at":"2018-10-02T00:11:23Z","pushed_at":"2018-10-23T17:53:17Z","git_url":"git://github.com/mprimi/genie.git","ssh_url":"git@github.com:mprimi/genie.git","clone_url":"https://github.com/mprimi/genie.git","svn_url":"https://github.com/mprimi/genie","homepage":"https://netflix.github.io/genie","size":14271,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Netflix:master","ref":"master","sha":"0e5952a53d5c39f95e30a40e96da46f44f2d8300","user":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"repo":{"id":10828921,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgyODkyMQ==","name":"genie","full_name":"Netflix/genie","private":false,"owner":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Netflix/genie","description":"Distributed Big Data Orchestration Service","fork":false,"url":"https://api.github.com/repos/Netflix/genie","forks_url":"https://api.github.com/repos/Netflix/genie/forks","keys_url":"https://api.github.com/repos/Netflix/genie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix/genie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix/genie/teams","hooks_url":"https://api.github.com/repos/Netflix/genie/hooks","issue_events_url":"https://api.github.com/repos/Netflix/genie/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix/genie/events","assignees_url":"https://api.github.com/repos/Netflix/genie/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix/genie/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix/genie/tags","blobs_url":"https://api.github.com/repos/Netflix/genie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix/genie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix/genie/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix/genie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix/genie/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix/genie/languages","stargazers_url":"https://api.github.com/repos/Netflix/genie/stargazers","contributors_url":"https://api.github.com/repos/Netflix/genie/contributors","subscribers_url":"https://api.github.com/repos/Netflix/genie/subscribers","subscription_url":"https://api.github.com/repos/Netflix/genie/subscription","commits_url":"https://api.github.com/repos/Netflix/genie/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix/genie/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix/genie/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix/genie/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netflix/genie/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix/genie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix/genie/merges","archive_url":"https://api.github.com/repos/Netflix/genie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix/genie/downloads","issues_url":"https://api.github.com/repos/Netflix/genie/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix/genie/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix/genie/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix/genie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix/genie/labels{/name}","releases_url":"https://api.github.com/repos/Netflix/genie/releases{/id}","deployments_url":"https://api.github.com/repos/Netflix/genie/deployments","created_at":"2013-06-20T20:35:56Z","updated_at":"2018-10-22T23:34:20Z","pushed_at":"2018-10-23T17:53:19Z","git_url":"git://github.com/Netflix/genie.git","ssh_url":"git@github.com:Netflix/genie.git","clone_url":"https://github.com/Netflix/genie.git","svn_url":"https://github.com/Netflix/genie","homepage":"https://netflix.github.io/genie","size":155999,"stargazers_count":1002,"watchers_count":1002,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":249,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":249,"open_issues":2,"watchers":1002,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Netflix/genie/pulls/789"},"html":{"href":"https://github.com/Netflix/genie/pull/789"},"issue":{"href":"https://api.github.com/repos/Netflix/genie/issues/789"},"comments":{"href":"https://api.github.com/repos/Netflix/genie/issues/789/comments"},"review_comments":{"href":"https://api.github.com/repos/Netflix/genie/pulls/789/comments"},"review_comment":{"href":"https://api.github.com/repos/Netflix/genie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Netflix/genie/pulls/789/commits"},"statuses":{"href":"https://api.github.com/repos/Netflix/genie/statuses/bb0f0ccbcd4712f662514c62d07a7e46d7fd964b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mprimi"}}