You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Could you provide a very simple example without uber jar, like your AnyClass
package test;
import org.tomitribe.crest.api.Command;
import org.tomitribe.crest.api.Default;
import org.tomitribe.crest.api.Option;
public class AClass {
@Command
public void doit(@Option("name") String name,
@Option("fname") @Default("foo") String fname, int age) {
System.out.println("-> name = " + name + ", fname = " + fname
+ ", age = " + age);
}
}
How to run this example in a console, tomitribe-crest-1.0.0-SNAPSHOT.jar being in classpath?
$ java -jar .\cliWithCrest.jar doit
aucun attribut manifest principal dans .\cliWithCrest.jar
(~ no main manifest attribute in cliWithCrest.jar in english environment).
Shouldn't java test.Aclass doit work or have I missed something?
Thanks for any help,
jgr
The text was updated successfully, but these errors were encountered:
Hi,
Could you provide a very simple example without uber jar, like your AnyClass
package test;
How to run this example in a console, tomitribe-crest-1.0.0-SNAPSHOT.jar being in classpath?
$ java -jar .\cliWithCrest.jar doit
aucun attribut manifest principal dans .\cliWithCrest.jar
(~ no main manifest attribute in cliWithCrest.jar in english environment).
Shouldn't java test.Aclass doit work or have I missed something?
Thanks for any help,
jgr
The text was updated successfully, but these errors were encountered: