Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
Better re-create the Options object every call
Browse files Browse the repository at this point in the history
  • Loading branch information
ata4 committed Jul 21, 2013
1 parent ed39240 commit 73faad7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/info/ata4/unity/cli/DisUnityCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DisUnityCli {
private static final Logger L = Logger.getLogger(DisUnityCli.class.getName());

private final DisUnity disunity;
private Options opts = new Options();
private Options opts;

/**
* @param args the command line arguments
Expand All @@ -62,6 +62,8 @@ public DisUnityCli(DisUnity disunity) {
}

public boolean configure(String[] args) {
opts = new Options();

Option optHelp = new Option("h", "help", false, "Print this help.");
opts.addOption(optHelp);

Expand Down

0 comments on commit 73faad7

Please sign in to comment.