usability: apollo script should echo usage when called with no arguments
------------------------------------------------------------------------
Key: APLO-137
URL: https://issues.apache.org/jira/browse/APLO-137
Project: ActiveMQ Apollo
Issue Type: Improvement
Components: apollo-distro
Affects Versions: 1.0
Environment: 1.0 rc
Reporter: Gary Tully
reading the readme happens after...
gtmbp:Downloads gtully$ cd apache-apollo-1.0
gtmbp:apache-apollo-1.0 gtully$ ls
LICENSE NOTICE bin docs etc
examples lib readme.html
gtmbp:apache-apollo-1.0 gtully$ ./bin/apollo
java.lang.NullPointerException
at org.apache.karaf.shell.console.Main.run(Main.java:114)
at org.apache.activemq.apollo.cli.Apollo.execute(Apollo.scala:167)
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)
at org.apache.karaf.shell.console.Main.run(Main.java:150)
at org.apache.karaf.shell.console.Main.run(Main.java:89)
at org.apache.activemq.apollo.cli.Apollo$.main(Apollo.scala:61)
at org.apache.activemq.apollo.cli.Apollo.main(Apollo.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.activemq.apollo.boot.Apollo.main(Apollo.java:95)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira