{"action":"opened","issue":{"url":"https://api.github.com/repos/abraunegg/onedrive/issues/295","repository_url":"https://api.github.com/repos/abraunegg/onedrive","labels_url":"https://api.github.com/repos/abraunegg/onedrive/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/abraunegg/onedrive/issues/295/comments","events_url":"https://api.github.com/repos/abraunegg/onedrive/issues/295/events","html_url":"https://github.com/abraunegg/onedrive/issues/295","id":392394945,"node_id":"MDU6SXNzdWUzOTIzOTQ5NDU=","number":295,"title":"Add usage text when missing options","user":{"login":"mbkupfer","id":6313008,"node_id":"MDQ6VXNlcjYzMTMwMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/6313008?v=4","gravatar_id":"","url":"https://api.github.com/users/mbkupfer","html_url":"https://github.com/mbkupfer","followers_url":"https://api.github.com/users/mbkupfer/followers","following_url":"https://api.github.com/users/mbkupfer/following{/other_user}","gists_url":"https://api.github.com/users/mbkupfer/gists{/gist_id}","starred_url":"https://api.github.com/users/mbkupfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbkupfer/subscriptions","organizations_url":"https://api.github.com/users/mbkupfer/orgs","repos_url":"https://api.github.com/users/mbkupfer/repos","events_url":"https://api.github.com/users/mbkupfer/events{/privacy}","received_events_url":"https://api.github.com/users/mbkupfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-19T00:43:09Z","updated_at":"2018-12-19T00:43:09Z","closed_at":null,"author_association":"NONE","body":"**Is your feature request related to a problem? Please describe.**\r\nUsing onedrive with no options returns a nicely formatted usage text:\r\n```\r\n$ onedrive\r\n\r\n--synchronize or --monitor missing from your command options or use --help for further assistance\r\n\r\nNo OneDrive sync will be performed without either of these two arguments being present\r\n```\r\n\r\nBut, this isn't the case for some other inputs. For example, using `--single-directory` or `--get-O365-drive-id` without a value will provide a \"missing value\" error, but this is then followed by a long and unhelpful dump of code. \r\n\r\n**Describe the solution you'd like**\r\nStrip all code from the error message and just leave it at `Missing value for argument <argument-name>.`\r\n\r\n**Describe alternatives you've considered**\r\nN/A\r\n\r\n**Additional context**\r\n\r\nYou can reproduce this using the following commands:\r\n`$ onedrive --get-O365-drive-id`\r\n`$ onedrive --synchronize --single-directory`\r\n\r\nOutput:\r\n```\r\nobject.Exception@/home/mkupfer/dlang/dmd-2.083.1/linux/bin64/../../src/phobos/std/getopt.d(883): Missing value for argument --single-directory.\r\n----------------\r\n<very long dump of unreadable code below>\r\n```\r\n"}}
{"actor":{"display_login":"mbkupfer"}}