Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show usage when invoked without arguments.

  • Loading branch information...
commit c0fb28f0d268ad5fa7051b8cffd95fb0adb94e09 1 parent 4b19855
Reid Burke reid authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/yahoo/platform/yui/compressor/YUICompressor.java
4 src/com/yahoo/platform/yui/compressor/YUICompressor.java
View
@@ -81,6 +81,10 @@ public static void main(String args[]) {
String[] fileArgs = parser.getRemainingArgs();
java.util.List files = java.util.Arrays.asList(fileArgs);
if (files.isEmpty()) {
+ if (type == null) {
+ usage();
+ System.exit(1);
+ }
files = new java.util.ArrayList();
files.add("-"); // read from stdin
}
Please sign in to comment.
Something went wrong with that request. Please try again.