mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 00:08:51 -05:00
Return special exit code if license is expired.
This commit is contained in:
parent
20cb1448b4
commit
0163d4ffd9
@ -36,9 +36,11 @@ public class ArgumentProcessor {
|
||||
log.finest("Done ヾ(@⌒ー⌒@)ノ");
|
||||
return 0;
|
||||
} catch (LicenseError e) {
|
||||
log.severe("License Error: " + e.getMessage());
|
||||
log.info(format("%n%s %s requires a valid license:%n%n=> %s%n%nPlease run `filebot --license *.psm` to install your FileBot license.%n", getApplicationName(), getApplicationVersion(), getPurchaseURL()));
|
||||
return 1;
|
||||
log.severe(format("License Error: %s", e.getMessage()));
|
||||
if (LICENSE.isFile()) {
|
||||
log.info(format("%n%s %s requires a valid license:%n%n=> %s%n%nPlease run `filebot --license *.psm` to install your FileBot license.%n", getApplicationName(), getApplicationVersion(), getPurchaseURL()));
|
||||
}
|
||||
return 2;
|
||||
} catch (Throwable e) {
|
||||
if (findCause(e, CmdlineException.class) != null) {
|
||||
log.log(Level.WARNING, findCause(e, CmdlineException.class).getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user