File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
metafacture-flux/src/main/java/org/metafacture/flux Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1919import org .metafacture .commons .ResourceUtil ;
2020import org .metafacture .commons .reflection .ConfigurableClass ;
2121import org .metafacture .commons .reflection .ObjectFactory ;
22+ import org .metafacture .flux .parser .FluxProgramm ;
2223import org .metafacture .framework .MetafactureException ;
2324import org .metafacture .framework .annotations .Description ;
2425import org .metafacture .framework .annotations .In ;
4344 * @author Markus Michael Geipel
4445 */
4546public final class HelpPrinter {
47+
4648 private HelpPrinter () {
4749 // no instances
4850 }
4951
52+ public static void main (final String [] args ) {
53+ FluxProgramm .printHelp (System .out );
54+ }
55+
5056 /**
5157 * Prints Flux help for a given ObjectFactory. Excerpts setters and their
5258 * arguments, {@code @in} annotations and {@code @out} annotations.
Original file line number Diff line number Diff line change @@ -158,3 +158,8 @@ tasks.signArchives {
158158 }
159159 }
160160}
161+
162+ task(' fluxCommands' , type : JavaExec , description : ' Print available Flux commands' ) {
163+ classpath = sourceSets. main. runtimeClasspath
164+ main = ' org.metafacture.flux.HelpPrinter'
165+ }
You can’t perform that action at this time.
0 commit comments