Skip to content

Commit

Permalink
dump help when no parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dieforfree committed Feb 28, 2016
1 parent 44cd93a commit e82c7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>free6om.research.qart4j</groupId>
<artifactId>qart4j</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>

<name>qart4j</name>
<url>http://maven.apache.org</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/free6om/research/qart4j/QArt.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static void main(String[] args) {
}
};
OptionSet options = parser.parse(args);
if (options.hasArgument("help") || options.has("?")) {
if (options.hasArgument("help") || options.has("?") || args.length == 0) {
try {
parser.printHelpOn(System.out);
} catch (IOException e) {
Expand Down

0 comments on commit e82c7ba

Please sign in to comment.