forked from I2P_Developers/i2p.i2p
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;
|
String announce = null;
|
||||||
List<String> url_list = null;
|
List<String> url_list = null;
|
||||||
String comment = 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 {
|
try {
|
||||||
int c;
|
int c;
|
||||||
while ((c = g.getopt()) != -1) {
|
while ((c = g.getopt()) != -1) {
|
||||||
|
@@ -95,7 +95,7 @@ public class I2Ping extends I2PTunnelClientBase {
|
|||||||
int remotePort = 0;
|
int remotePort = 0;
|
||||||
boolean error = false;
|
boolean error = false;
|
||||||
String[] argv = DataHelper.split(cmd, " ");
|
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;
|
int c;
|
||||||
while ((c = g.getopt()) != -1) {
|
while ((c = g.getopt()) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
@@ -119,7 +119,7 @@ public class PrivateKeyFile {
|
|||||||
double days = 365;
|
double days = 365;
|
||||||
int mode = 0;
|
int mode = 0;
|
||||||
boolean error = false;
|
boolean error = false;
|
||||||
Getopt g = new Getopt("pkf", args, "t:nuxhse:c:a:o:d:r:p:b:y:z:w:");
|
Getopt g = new Getopt("PrivateKeyFile", args, "t:nuxhse:c:a:o:d:r:p:b:y:z:w:v:V:");
|
||||||
int c;
|
int c;
|
||||||
while ((c = g.getopt()) != -1) {
|
while ((c = g.getopt()) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
@@ -46,7 +46,7 @@ import net.i2p.util.FileUtil;
|
|||||||
public class BundleRouterInfos {
|
public class BundleRouterInfos {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Usage: PersistentDataStore -i configDir -o toDir -c count
|
* Usage: BundleRouterInfos -i configDir -o toDir -c count
|
||||||
*
|
*
|
||||||
* Copy a random selection of 'count' router infos from configDir/netDb
|
* Copy a random selection of 'count' router infos from configDir/netDb
|
||||||
* to 'toDir'. Skip your own router info, and old, hidden, unreachable, and
|
* to 'toDir'. Skip your own router info, and old, hidden, unreachable, and
|
||||||
@@ -55,7 +55,7 @@ public class BundleRouterInfos {
|
|||||||
* @since 0.9.15
|
* @since 0.9.15
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Getopt g = new Getopt("PersistentDataStore", args, "i:o:c:");
|
Getopt g = new Getopt("BundleRouterInfos", args, "i:o:c:");
|
||||||
String in = System.getProperty("user.home") + "/.i2p";
|
String in = System.getProperty("user.home") + "/.i2p";
|
||||||
String out = "netDb";
|
String out = "netDb";
|
||||||
int count = 200;
|
int count = 200;
|
||||||
|
@@ -116,7 +116,7 @@ class LocalClientManager extends ClientManager {
|
|||||||
int dropX1000 = 0, jitter = 0, latency = 0;
|
int dropX1000 = 0, jitter = 0, latency = 0;
|
||||||
int port = ClientManagerFacadeImpl.DEFAULT_PORT;
|
int port = ClientManagerFacadeImpl.DEFAULT_PORT;
|
||||||
boolean error = false;
|
boolean error = false;
|
||||||
Getopt g = new Getopt("router", args, "d:j:l:p:");
|
Getopt g = new Getopt("LocalClientManager", args, "d:j:l:p:");
|
||||||
try {
|
try {
|
||||||
int c;
|
int c;
|
||||||
while ((c = g.getopt()) != -1) {
|
while ((c = g.getopt()) != -1) {
|
||||||
|
Reference in New Issue
Block a user