Commit 0ea21130 authored by Christian MOMON's avatar Christian MOMON
Browse files

Improved error message.

parent d1fdec6d
......@@ -103,6 +103,10 @@ public class FlatDB4GeoNamesCLI
{
if (ToolBox.matchAny(args[0], "-h", "-help", "--help"))
{
if (args.length != 1)
{
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
}
showHelp();
}
else if (StringUtils.equals(args[0], "download"))
......@@ -117,7 +121,7 @@ public class FlatDB4GeoNamesCLI
}
else
{
System.err.println("Bad parameters.");
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
showHelp();
}
}
......@@ -133,7 +137,7 @@ public class FlatDB4GeoNamesCLI
}
else
{
System.err.println("Bad parameters.");
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
showHelp();
}
}
......@@ -149,7 +153,7 @@ public class FlatDB4GeoNamesCLI
}
else
{
System.err.println("Bad parameters.");
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
showHelp();
}
}
......@@ -171,13 +175,13 @@ public class FlatDB4GeoNamesCLI
}
else
{
System.err.println("Bad parameters.");
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
showHelp();
}
}
else
{
System.err.println("Bad parameters.");
System.err.println("Bad parameters: " + StringList.toStringWithBrackets(args));
showHelp();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment