mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
ForwardingService: return error code 1 on bad command line usage
This commit is contained in:
parent
49290a8ce0
commit
8f504d3795
1 changed files with 2 additions and 2 deletions
|
@ -61,9 +61,9 @@ public class ForwardingService implements Closeable {
|
|||
BriefLogFormatter.init();
|
||||
Context.propagate(new Context());
|
||||
|
||||
if (args.length < 1) {
|
||||
if (args.length < 1 || args.length > 2) {
|
||||
System.err.println(USAGE);
|
||||
throw new IllegalArgumentException("Address required");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
// Figure out which network we should connect to. Each network gets its own set of files.
|
||||
|
|
Loading…
Add table
Reference in a new issue