{"action":"created","comment":{"url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/comments/226859148","pull_request_review_id":166781229,"id":226859148,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjg1OTE0OA==","diff_hunk":"@@ -7,7 +7,17 @@ const chalk = require('chalk');\n const ora = require('ora');\n const fusv = require('./index.js');\n \n-const args = process.argv.slice(2); // The first and second args are: path/to/node script.js\n+// The first and second args are: path/to/node script.js\n+// If an argument starts with --, exclude the argument and the next argument.\n+const args = process.argv.slice(2)\n+                .filter((arg, i, list) => !arg.startsWith('--') && (i === 0 || !list[i - 1].startsWith('--')));\n+\n+// Ignored variables, comma separated.\n+const ignore = process.argv.slice(2)\n+                .filter((arg, i, list) => i !== 0 && list[i - 1] === '--ignore')\n+                .join(',')\n+                .split(',');","path":"cli.js","position":14,"original_position":14,"commit_id":"d6bef9841771e8baceda0c135682d4ede708bb1e","original_commit_id":"5dd64ef29969297437352c965db5ab674e06d95e","user":{"login":"MartijnCuppens","id":11559216,"node_id":"MDQ6VXNlcjExNTU5MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/11559216?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnCuppens","html_url":"https://github.com/MartijnCuppens","followers_url":"https://api.github.com/users/MartijnCuppens/followers","following_url":"https://api.github.com/users/MartijnCuppens/following{/other_user}","gists_url":"https://api.github.com/users/MartijnCuppens/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnCuppens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnCuppens/subscriptions","organizations_url":"https://api.github.com/users/MartijnCuppens/orgs","repos_url":"https://api.github.com/users/MartijnCuppens/repos","events_url":"https://api.github.com/users/MartijnCuppens/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnCuppens/received_events","type":"User","site_admin":false},"body":"@XhmikosR, see https://github.com/XhmikosR/find-unused-sass-variables/pull/24/commits/5dd64ef29969297437352c965db5ab674e06d95e","created_at":"2018-10-21T11:28:14Z","updated_at":"2018-10-21T11:28:14Z","html_url":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24#discussion_r226859148","pull_request_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/comments/226859148"},"html":{"href":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24#discussion_r226859148"},"pull_request":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24"}},"in_reply_to_id":226824350},"pull_request":{"url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24","id":217513059,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NTEzMDU5","html_url":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24","diff_url":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24.diff","patch_url":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24.patch","issue_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/24","number":24,"state":"open","locked":false,"title":"Allow to ignore some vars","user":{"login":"MartijnCuppens","id":11559216,"node_id":"MDQ6VXNlcjExNTU5MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/11559216?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnCuppens","html_url":"https://github.com/MartijnCuppens","followers_url":"https://api.github.com/users/MartijnCuppens/followers","following_url":"https://api.github.com/users/MartijnCuppens/following{/other_user}","gists_url":"https://api.github.com/users/MartijnCuppens/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnCuppens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnCuppens/subscriptions","organizations_url":"https://api.github.com/users/MartijnCuppens/orgs","repos_url":"https://api.github.com/users/MartijnCuppens/repos","events_url":"https://api.github.com/users/MartijnCuppens/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnCuppens/received_events","type":"User","site_admin":false},"body":"With this PR it's possible to ignore some variables.\r\nUsage:\r\n```shell\r\nfusv folder --ignore '$my-var,$my-second-var'\r\n```\r\n\r\nCloses #18","created_at":"2018-09-23T14:42:12Z","updated_at":"2018-10-21T11:28:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c041f539ede881690f0c19aaeeb43892b006623f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24/commits","review_comments_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24/comments","review_comment_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/24/comments","statuses_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/statuses/d6bef9841771e8baceda0c135682d4ede708bb1e","head":{"label":"MartijnCuppens:unused-variables","ref":"unused-variables","sha":"d6bef9841771e8baceda0c135682d4ede708bb1e","user":{"login":"MartijnCuppens","id":11559216,"node_id":"MDQ6VXNlcjExNTU5MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/11559216?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnCuppens","html_url":"https://github.com/MartijnCuppens","followers_url":"https://api.github.com/users/MartijnCuppens/followers","following_url":"https://api.github.com/users/MartijnCuppens/following{/other_user}","gists_url":"https://api.github.com/users/MartijnCuppens/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnCuppens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnCuppens/subscriptions","organizations_url":"https://api.github.com/users/MartijnCuppens/orgs","repos_url":"https://api.github.com/users/MartijnCuppens/repos","events_url":"https://api.github.com/users/MartijnCuppens/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnCuppens/received_events","type":"User","site_admin":false},"repo":{"id":149883188,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4ODMxODg=","name":"find-unused-sass-variables","full_name":"MartijnCuppens/find-unused-sass-variables","private":false,"owner":{"login":"MartijnCuppens","id":11559216,"node_id":"MDQ6VXNlcjExNTU5MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/11559216?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnCuppens","html_url":"https://github.com/MartijnCuppens","followers_url":"https://api.github.com/users/MartijnCuppens/followers","following_url":"https://api.github.com/users/MartijnCuppens/following{/other_user}","gists_url":"https://api.github.com/users/MartijnCuppens/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnCuppens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnCuppens/subscriptions","organizations_url":"https://api.github.com/users/MartijnCuppens/orgs","repos_url":"https://api.github.com/users/MartijnCuppens/repos","events_url":"https://api.github.com/users/MartijnCuppens/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnCuppens/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MartijnCuppens/find-unused-sass-variables","description":null,"fork":true,"url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables","forks_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/forks","keys_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/teams","hooks_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/hooks","issue_events_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/issues/events{/number}","events_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/events","assignees_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/assignees{/user}","branches_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/branches{/branch}","tags_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/tags","blobs_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/git/refs{/sha}","trees_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/statuses/{sha}","languages_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/languages","stargazers_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/stargazers","contributors_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/contributors","subscribers_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/subscribers","subscription_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/subscription","commits_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/commits{/sha}","git_commits_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/git/commits{/sha}","comments_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/comments{/number}","issue_comment_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/issues/comments{/number}","contents_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/contents/{+path}","compare_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/merges","archive_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/downloads","issues_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/issues{/number}","pulls_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/pulls{/number}","milestones_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/milestones{/number}","notifications_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/labels{/name}","releases_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/releases{/id}","deployments_url":"https://api.github.com/repos/MartijnCuppens/find-unused-sass-variables/deployments","created_at":"2018-09-22T14:13:48Z","updated_at":"2018-09-22T14:13:50Z","pushed_at":"2018-10-21T08:40:03Z","git_url":"git://github.com/MartijnCuppens/find-unused-sass-variables.git","ssh_url":"git@github.com:MartijnCuppens/find-unused-sass-variables.git","clone_url":"https://github.com/MartijnCuppens/find-unused-sass-variables.git","svn_url":"https://github.com/MartijnCuppens/find-unused-sass-variables","homepage":null,"size":76,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"XhmikosR:master","ref":"master","sha":"3870fbc5b3dfa95f152ce84dfdae14ca65855263","user":{"login":"XhmikosR","id":349621,"node_id":"MDQ6VXNlcjM0OTYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/349621?v=4","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"repo":{"id":112077966,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwNzc5NjY=","name":"find-unused-sass-variables","full_name":"XhmikosR/find-unused-sass-variables","private":false,"owner":{"login":"XhmikosR","id":349621,"node_id":"MDQ6VXNlcjM0OTYyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/349621?v=4","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/XhmikosR/find-unused-sass-variables","description":null,"fork":false,"url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables","forks_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/forks","keys_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/teams","hooks_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/hooks","issue_events_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/events{/number}","events_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/events","assignees_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/assignees{/user}","branches_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/branches{/branch}","tags_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/tags","blobs_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/git/refs{/sha}","trees_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/statuses/{sha}","languages_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/languages","stargazers_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/stargazers","contributors_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/contributors","subscribers_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/subscribers","subscription_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/subscription","commits_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/commits{/sha}","git_commits_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/git/commits{/sha}","comments_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/comments{/number}","issue_comment_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/comments{/number}","contents_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/contents/{+path}","compare_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/merges","archive_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/downloads","issues_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues{/number}","pulls_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls{/number}","milestones_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/milestones{/number}","notifications_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/labels{/name}","releases_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/releases{/id}","deployments_url":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/deployments","created_at":"2017-11-26T11:45:12Z","updated_at":"2018-10-11T20:28:08Z","pushed_at":"2018-10-21T08:40:04Z","git_url":"git://github.com/XhmikosR/find-unused-sass-variables.git","ssh_url":"git@github.com:XhmikosR/find-unused-sass-variables.git","clone_url":"https://github.com/XhmikosR/find-unused-sass-variables.git","svn_url":"https://github.com/XhmikosR/find-unused-sass-variables","homepage":null,"size":63,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24"},"html":{"href":"https://github.com/XhmikosR/find-unused-sass-variables/pull/24"},"issue":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/24"},"comments":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/XhmikosR/find-unused-sass-variables/statuses/d6bef9841771e8baceda0c135682d4ede708bb1e"}},"author_association":"NONE"}}
{"actor":{"display_login":"MartijnCuppens"}}