acceptsAll(asList("?", "h", "help"), "Show help.").forHelp(); acceptsAll(asList("g", "generate"), "Generate new key pair and store in a files starting " + "with a given prefix.") .withRequiredArg().ofType(String.class) .describedAs("name_prefix"); accepts("s", "With -g, specify key strength.") .withRequiredArg() .ofType(Integer.class) .defaultsTo(2048); acceptsAll(asList("c", "create"), "Create smart contract from dsl template.") .withOptionalArg() .withValuesSeparatedBy(",") .ofType(String.class) .describedAs("file.yml"); accepts("wait", "with --register, wait for network consensus up to specified number of milliseconds.") .withOptionalArg().ofType(Integer.class).defaultsTo(5000) .describedAs("milliseconds"); acceptsAll(asList("j", "json"), "Return result in json format."); acceptsAll(asList("v", "verbose"), "Provide more detailed information."); acceptsAll(asList("network"), "Check network status."); acceptsAll(asList("u-rate"), "Get how many U are given for 1 UTN at this time."); acceptsAll(asList("no-cache"), "Do not use session cache"); accepts("register", "register a specified contract, must be a sealed binary file. Use with either --wallet or --u with --keys to specify payment options. If none are specified default wallet will be used. If no default wallet exist command fails. Amount to pay is specified with --amount") .withOptionalArg() .withValuesSeparatedBy(",") .ofType(String.class). describedAs("contract.unicon"); accepts("register-parcel", "register a specified parcel") .withOptionalArg()