Skip to content

Commit f5ba85d

Browse files
committed
followup to d66b94b in case no arguments are present
1 parent d66b94b commit f5ba85d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org/w3c/css/css/CssValidator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ public static void main(String args[])
9595

9696
// first, we get the parameters and create an application context
9797
try {
98+
// kludge to display usage
99+
if (args == null || args.length == 0) {
100+
throw new Exception();
101+
}
98102
for (String param : args) {
99103
if ("-h".equals(param) || "--help".equals(param) || "-help".equals(param)) {
100104
throw new Exception();

0 commit comments

Comments
 (0)