public class DemoCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DemoCommands.Day |
| Constructor and Description |
|---|
DemoCommands() |
| Modifier and Type | Method and Description |
|---|---|
double |
add(double a,
double b) |
double |
addAll(double... numbers) |
int |
dayOfWeek(DemoCommands.Day day) |
void |
error() |
double |
getTemperature(int module) |
void |
longCommand() |
@Command(description="Get the temperature of a module", alias="gt") public double getTemperature(@Argument(name="module",description="module (0-9)") int module)
@Command(description="Add two arguments") public double add(double a, double b)
@Command(description="Add any number of arguments") public double addAll(double... numbers)
@Command(description="Convert day of week to an ordinal", alias="dow, day") public int dayOfWeek(@Argument(name="Day") DemoCommands.Day day)
@Command(description="Always generates an error") public void error()
@Command(name="ACrazyLongNameToTestIfHelpFormatingWorks", description="A very long command that does nothing", level=1) public void longCommand()
Copyright © 2014 LSST. All rights reserved.