mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-27 11:02:34 +02:00
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:
parent
025a3b2878
commit
dfd3045ce4
|
@ -139,6 +139,11 @@ int main(string[] args)
|
||||||
log.error(e.msg);
|
log.error(e.msg);
|
||||||
log.error("Try 'onedrive -h' for more information");
|
log.error("Try 'onedrive -h' for more information");
|
||||||
return EXIT_FAILURE;
|
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
|
// disable buffering on stdout
|
||||||
|
|
Loading…
Reference in a new issue