Fix exception when missing parameter from usage option (#299)

* Handle the exception generated when an option is used which is expecting an input parameter but none is given
This commit is contained in:
abraunegg 2018-12-20 11:05:32 +11:00 committed by GitHub
parent 025a3b2878
commit dfd3045ce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,6 +139,11 @@ int main(string[] args)
log.error(e.msg);
log.error("Try 'onedrive -h' for more information");
return EXIT_FAILURE;
} catch (Exception e) {
// error
log.error(e.msg);
log.error("Try 'onedrive -h' for more information");
return EXIT_FAILURE;
}
// disable buffering on stdout