Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple example without uber jar #12

Open
jgranduel opened this issue Jun 12, 2014 · 0 comments
Open

simple example without uber jar #12

jgranduel opened this issue Jun 12, 2014 · 0 comments

Comments

@jgranduel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant