Skip to content

Commit

Permalink
Added base tool class for Ceylon commands (ceylon/ceylon-runtime#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
quintesse committed Oct 2, 2013
1 parent 0f48d25 commit 75a46e3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/com/redhat/ceylon/common/tool/CeylonBaseTool.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.redhat.ceylon.common.tool;

public abstract class CeylonBaseTool implements Tool {
public String verbose;

public String getVerbose() {
return verbose;
}

@Option
@OptionArgument(argumentName = "flags")
@Description("Produce verbose output. " +
"If no `flags` are given then be verbose about everything, " +
"otherwise just be verbose about the flags which are present. " +
"Allowed flags include: `all`, `loader`.")
public void setVerbose(String verbose) {
this.verbose = verbose;
}

}

0 comments on commit 75a46e3

Please sign in to comment.