Skip to content

Commit

Permalink
Show usage when invoked without arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Apr 15, 2011
1 parent 4b19855 commit c0fb28f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/yahoo/platform/yui/compressor/YUICompressor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c0fb28f

Please sign in to comment.