[jboss-jira] [JBoss JIRA] (ELY-1086) CS tool, Command without any option must show help rather then error message about required options.

Ilia Vassilev (JIRA) issues at jboss.org
Wed May 24 11:13:00 EDT 2017


     [ https://issues.jboss.org/browse/ELY-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilia Vassilev updated ELY-1086:
-------------------------------
    Git Pull Request: https://github.com/wildfly-security/wildfly-elytron-tool/pull/50, https://github.com/wildfly-security/wildfly-elytron-tool/pull/67  (was: https://github.com/wildfly-security/wildfly-elytron-tool/pull/50)


> CS tool, Command without any option must show help rather then error message about required options.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ELY-1086
>                 URL: https://issues.jboss.org/browse/ELY-1086
>             Project: WildFly Elytron
>          Issue Type: Bug
>          Components: Credential Store
>            Reporter: Hynek Švábek
>            Assignee: Ilia Vassilev
>
> Command without any option must show help rather then error message about required options.
> *How to reproduce:*
> {code}
> java -jar  wildfly-elytron-tool.jar credential-store 
> Exception encountered executing the command:
> org.apache.commons.cli.MissingOptionException: Missing required option: [-a Add new alias to the credential store, -r Remove alias from the credential store, -e Check if alias exists within the credential store, -v Display all aliases, -h Get help with usage of this command]
>         at org.apache.commons.cli.DefaultParser.checkRequiredOptions(DefaultParser.java:199)
>         at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:130)
>         at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:81)
>         at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:120)
>         at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:74)
> {code}
> *Same for mask command*
> {code}
> java -jar  wildfly-elytron-tool.jar mask
> Exception encountered executing the command:
> org.apache.commons.cli.MissingOptionException: Missing required option: [-x Secret to be encrypted, -h Get help with usage of this command]
>         at org.apache.commons.cli.DefaultParser.checkRequiredOptions(DefaultParser.java:199)
>         at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:130)
>         at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:81)
>         at org.wildfly.security.tool.MaskCommand.execute(MaskCommand.java:72)
>         at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:74)
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list