mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-24 16:45:16 +00:00
CLI: Fix getopt program names
these are output by getopt in error messages
This commit is contained in:
@@ -856,7 +856,7 @@ public class MetaInfo
|
||||
String announce = null;
|
||||
List<String> url_list = null;
|
||||
String comment = null;
|
||||
Getopt g = new Getopt("Storage", args, "a:c:m:w:");
|
||||
Getopt g = new Getopt("MetaInfo", args, "a:c:m:w:");
|
||||
try {
|
||||
int c;
|
||||
while ((c = g.getopt()) != -1) {
|
||||
|
||||
@@ -95,7 +95,7 @@ public class I2Ping extends I2PTunnelClientBase {
|
||||
int remotePort = 0;
|
||||
boolean error = false;
|
||||
String[] argv = DataHelper.split(cmd, " ");
|
||||
Getopt g = new Getopt("ping", argv, "t:m:n:chl:f:p:");
|
||||
Getopt g = new Getopt("i2ping", argv, "t:m:n:chl:f:p:");
|
||||
int c;
|
||||
while ((c = g.getopt()) != -1) {
|
||||
switch (c) {
|
||||
|
||||
Reference in New Issue
Block a user