{"action":"created","comment":{"url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/comments/221553032","pull_request_review_id":160226096,"id":221553032,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTU1MzAzMg==","diff_hunk":"@@ -1,21 +1,34 @@\n import sys\n+from argparse import ArgumentParser\n \n from command_line import enhanced_prompt, reduced_prompt, CommandHandler\n from version import VERSION_STRING\n \n-\n-COMMAND_MODE = \"--command-line\" in sys.argv or \"-c\" in sys.argv\n-REDUCED_MODE = \"--reduced\" in sys.argv or \"-r\" in sys.argv\n-\n-\n if __name__ == \"__main__\":\n-    if COMMAND_MODE:\n+    parser = ArgumentParser(\n+        description=\"A new Minecraft world editor that aims to be flexible, \"\n+        \"extendable and support most editions of Minecraft\"\n+    )\n+    parser.add_argument(\n+        \"-c\",\n+        \"--command-line\",\n+        action=\"store_true\",\n+        help=\"use the commandline interface\",\n+    )\n+    parser.add_argument(\n+        \"-r\",\n+        \"--reduced\",\n+        action=\"store_true\",\n+        help=\"use a reduced prompt (commandline mode only)\",\n+    )\n+    args = parser.parse_args()\n+    if args.command_line:","path":"src/main.py","position":31,"original_position":31,"commit_id":"4eff6417999dcc2c1edb97478ef84503d567ddc5","original_commit_id":"4eff6417999dcc2c1edb97478ef84503d567ddc5","user":{"login":"freundTech","id":9515067,"node_id":"MDQ6VXNlcjk1MTUwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/9515067?v=4","gravatar_id":"","url":"https://api.github.com/users/freundTech","html_url":"https://github.com/freundTech","followers_url":"https://api.github.com/users/freundTech/followers","following_url":"https://api.github.com/users/freundTech/following{/other_user}","gists_url":"https://api.github.com/users/freundTech/gists{/gist_id}","starred_url":"https://api.github.com/users/freundTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freundTech/subscriptions","organizations_url":"https://api.github.com/users/freundTech/orgs","repos_url":"https://api.github.com/users/freundTech/repos","events_url":"https://api.github.com/users/freundTech/events{/privacy}","received_events_url":"https://api.github.com/users/freundTech/received_events","type":"User","site_admin":false},"body":"Yes. I noticed that too. The current behaviour is exactly as it was before.\r\nWhich solution is the better one? Activating commandline mode when only --reduced is passed or complaining if only --reduced it used?","created_at":"2018-10-01T09:57:46Z","updated_at":"2018-10-01T09:57:46Z","html_url":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8#discussion_r221553032","pull_request_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/comments/221553032"},"html":{"href":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8#discussion_r221553032"},"pull_request":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8"}},"in_reply_to_id":221548368},"pull_request":{"url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8","id":219229691,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MjI5Njkx","html_url":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8","diff_url":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8.diff","patch_url":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8.patch","issue_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/8","number":8,"state":"open","locked":false,"title":"Changed main.py to use argparse","user":{"login":"freundTech","id":9515067,"node_id":"MDQ6VXNlcjk1MTUwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/9515067?v=4","gravatar_id":"","url":"https://api.github.com/users/freundTech","html_url":"https://github.com/freundTech","followers_url":"https://api.github.com/users/freundTech/followers","following_url":"https://api.github.com/users/freundTech/following{/other_user}","gists_url":"https://api.github.com/users/freundTech/gists{/gist_id}","starred_url":"https://api.github.com/users/freundTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freundTech/subscriptions","organizations_url":"https://api.github.com/users/freundTech/orgs","repos_url":"https://api.github.com/users/freundTech/repos","events_url":"https://api.github.com/users/freundTech/events{/privacy}","received_events_url":"https://api.github.com/users/freundTech/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-30T21:45:40Z","updated_at":"2018-10-01T09:57:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6f946f1cfad49180848c4984c595605a29108cb","assignee":{"login":"Podshot","id":4026610,"node_id":"MDQ6VXNlcjQwMjY2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4026610?v=4","gravatar_id":"","url":"https://api.github.com/users/Podshot","html_url":"https://github.com/Podshot","followers_url":"https://api.github.com/users/Podshot/followers","following_url":"https://api.github.com/users/Podshot/following{/other_user}","gists_url":"https://api.github.com/users/Podshot/gists{/gist_id}","starred_url":"https://api.github.com/users/Podshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Podshot/subscriptions","organizations_url":"https://api.github.com/users/Podshot/orgs","repos_url":"https://api.github.com/users/Podshot/repos","events_url":"https://api.github.com/users/Podshot/events{/privacy}","received_events_url":"https://api.github.com/users/Podshot/received_events","type":"User","site_admin":false},"assignees":[{"login":"Podshot","id":4026610,"node_id":"MDQ6VXNlcjQwMjY2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4026610?v=4","gravatar_id":"","url":"https://api.github.com/users/Podshot","html_url":"https://github.com/Podshot","followers_url":"https://api.github.com/users/Podshot/followers","following_url":"https://api.github.com/users/Podshot/following{/other_user}","gists_url":"https://api.github.com/users/Podshot/gists{/gist_id}","starred_url":"https://api.github.com/users/Podshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Podshot/subscriptions","organizations_url":"https://api.github.com/users/Podshot/orgs","repos_url":"https://api.github.com/users/Podshot/repos","events_url":"https://api.github.com/users/Podshot/events{/privacy}","received_events_url":"https://api.github.com/users/Podshot/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"Podshot","id":4026610,"node_id":"MDQ6VXNlcjQwMjY2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4026610?v=4","gravatar_id":"","url":"https://api.github.com/users/Podshot","html_url":"https://github.com/Podshot","followers_url":"https://api.github.com/users/Podshot/followers","following_url":"https://api.github.com/users/Podshot/following{/other_user}","gists_url":"https://api.github.com/users/Podshot/gists{/gist_id}","starred_url":"https://api.github.com/users/Podshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Podshot/subscriptions","organizations_url":"https://api.github.com/users/Podshot/orgs","repos_url":"https://api.github.com/users/Podshot/repos","events_url":"https://api.github.com/users/Podshot/events{/privacy}","received_events_url":"https://api.github.com/users/Podshot/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/8/comments","statuses_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/statuses/4eff6417999dcc2c1edb97478ef84503d567ddc5","head":{"label":"freundTech:argparse","ref":"argparse","sha":"4eff6417999dcc2c1edb97478ef84503d567ddc5","user":{"login":"freundTech","id":9515067,"node_id":"MDQ6VXNlcjk1MTUwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/9515067?v=4","gravatar_id":"","url":"https://api.github.com/users/freundTech","html_url":"https://github.com/freundTech","followers_url":"https://api.github.com/users/freundTech/followers","following_url":"https://api.github.com/users/freundTech/following{/other_user}","gists_url":"https://api.github.com/users/freundTech/gists{/gist_id}","starred_url":"https://api.github.com/users/freundTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freundTech/subscriptions","organizations_url":"https://api.github.com/users/freundTech/orgs","repos_url":"https://api.github.com/users/freundTech/repos","events_url":"https://api.github.com/users/freundTech/events{/privacy}","received_events_url":"https://api.github.com/users/freundTech/received_events","type":"User","site_admin":false},"repo":{"id":151008385,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEwMDgzODU=","name":"Amulet-Map-Editor","full_name":"freundTech/Amulet-Map-Editor","private":false,"owner":{"login":"freundTech","id":9515067,"node_id":"MDQ6VXNlcjk1MTUwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/9515067?v=4","gravatar_id":"","url":"https://api.github.com/users/freundTech","html_url":"https://github.com/freundTech","followers_url":"https://api.github.com/users/freundTech/followers","following_url":"https://api.github.com/users/freundTech/following{/other_user}","gists_url":"https://api.github.com/users/freundTech/gists{/gist_id}","starred_url":"https://api.github.com/users/freundTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freundTech/subscriptions","organizations_url":"https://api.github.com/users/freundTech/orgs","repos_url":"https://api.github.com/users/freundTech/repos","events_url":"https://api.github.com/users/freundTech/events{/privacy}","received_events_url":"https://api.github.com/users/freundTech/received_events","type":"User","site_admin":false},"html_url":"https://github.com/freundTech/Amulet-Map-Editor","description":null,"fork":true,"url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor","forks_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/forks","keys_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/teams","hooks_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/hooks","issue_events_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/issues/events{/number}","events_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/events","assignees_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/assignees{/user}","branches_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/branches{/branch}","tags_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/tags","blobs_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/statuses/{sha}","languages_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/languages","stargazers_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/stargazers","contributors_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/contributors","subscribers_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/subscribers","subscription_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/subscription","commits_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/contents/{+path}","compare_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/merges","archive_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/downloads","issues_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/issues{/number}","pulls_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/pulls{/number}","milestones_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/milestones{/number}","notifications_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/labels{/name}","releases_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/releases{/id}","deployments_url":"https://api.github.com/repos/freundTech/Amulet-Map-Editor/deployments","created_at":"2018-09-30T21:24:02Z","updated_at":"2018-09-30T21:24:04Z","pushed_at":"2018-10-01T09:49:51Z","git_url":"git://github.com/freundTech/Amulet-Map-Editor.git","ssh_url":"git@github.com:freundTech/Amulet-Map-Editor.git","clone_url":"https://github.com/freundTech/Amulet-Map-Editor.git","svn_url":"https://github.com/freundTech/Amulet-Map-Editor","homepage":null,"size":5341,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"Amulet-Team:master","ref":"master","sha":"6332bbe4a5e9f92f036dbc3b8e1b975da2d336f0","user":{"login":"Amulet-Team","id":43118186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTE4MTg2","avatar_url":"https://avatars3.githubusercontent.com/u/43118186?v=4","gravatar_id":"","url":"https://api.github.com/users/Amulet-Team","html_url":"https://github.com/Amulet-Team","followers_url":"https://api.github.com/users/Amulet-Team/followers","following_url":"https://api.github.com/users/Amulet-Team/following{/other_user}","gists_url":"https://api.github.com/users/Amulet-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/Amulet-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amulet-Team/subscriptions","organizations_url":"https://api.github.com/users/Amulet-Team/orgs","repos_url":"https://api.github.com/users/Amulet-Team/repos","events_url":"https://api.github.com/users/Amulet-Team/events{/privacy}","received_events_url":"https://api.github.com/users/Amulet-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":130729079,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA3MjkwNzk=","name":"Amulet-Map-Editor","full_name":"Amulet-Team/Amulet-Map-Editor","private":false,"owner":{"login":"Amulet-Team","id":43118186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTE4MTg2","avatar_url":"https://avatars3.githubusercontent.com/u/43118186?v=4","gravatar_id":"","url":"https://api.github.com/users/Amulet-Team","html_url":"https://github.com/Amulet-Team","followers_url":"https://api.github.com/users/Amulet-Team/followers","following_url":"https://api.github.com/users/Amulet-Team/following{/other_user}","gists_url":"https://api.github.com/users/Amulet-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/Amulet-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amulet-Team/subscriptions","organizations_url":"https://api.github.com/users/Amulet-Team/orgs","repos_url":"https://api.github.com/users/Amulet-Team/repos","events_url":"https://api.github.com/users/Amulet-Team/events{/privacy}","received_events_url":"https://api.github.com/users/Amulet-Team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Amulet-Team/Amulet-Map-Editor","description":null,"fork":false,"url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor","forks_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/forks","keys_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/teams","hooks_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/hooks","issue_events_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/events{/number}","events_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/events","assignees_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/assignees{/user}","branches_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/branches{/branch}","tags_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/tags","blobs_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/statuses/{sha}","languages_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/languages","stargazers_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/stargazers","contributors_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/contributors","subscribers_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/subscribers","subscription_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/subscription","commits_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/contents/{+path}","compare_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/merges","archive_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/downloads","issues_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues{/number}","pulls_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls{/number}","milestones_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/milestones{/number}","notifications_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/labels{/name}","releases_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/releases{/id}","deployments_url":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/deployments","created_at":"2018-04-23T17:00:04Z","updated_at":"2018-10-01T03:11:27Z","pushed_at":"2018-10-01T09:54:14Z","git_url":"git://github.com/Amulet-Team/Amulet-Map-Editor.git","ssh_url":"git@github.com:Amulet-Team/Amulet-Map-Editor.git","clone_url":"https://github.com/Amulet-Team/Amulet-Map-Editor.git","svn_url":"https://github.com/Amulet-Team/Amulet-Map-Editor","homepage":null,"size":5346,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8"},"html":{"href":"https://github.com/Amulet-Team/Amulet-Map-Editor/pull/8"},"issue":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/8"},"comments":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Amulet-Team/Amulet-Map-Editor/statuses/4eff6417999dcc2c1edb97478ef84503d567ddc5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"freundTech"}}