mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-06 07:53:16 +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("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
|
||||
|
|
Loading…
Reference in a new issue