You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/05/18 22:06:00 UTC

[jira] [Commented] (KARAF-5761) Print better usage of commands in karaf shell

    [ https://issues.apache.org/jira/browse/KARAF-5761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16481257#comment-16481257 ] 

ASF GitHub Bot commented on KARAF-5761:
---------------------------------------

xipki opened a new pull request #508: Implemented KARAF-5761
URL: https://github.com/apache/karaf/pull/508
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Print better usage of commands in karaf shell
> ---------------------------------------------
>
>                 Key: KARAF-5761
>                 URL: https://issues.apache.org/jira/browse/KARAF-5761
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 4.2.0
>            Reporter: Lijun Liao
>            Priority: Minor
>             Fix For: 4.2.1
>
>
>  commands in karaf shell, extend the usage (help page) to indicate that an option is required and/or multi-valued, and the same for arguments.
> An example usage in the current version is as follows:
> SYNTAX
>         xi:demo-cmd  [options] arg1 arg2
> ARGUMENTS
>         arg1
>                 Description of arg1
>         arg2
>                 Description of arg2
> OPTIONS
>         --opt1
>                Description of opt1
>         --opt2
>                Description of opt2
>         --opt3
>                Description of opt3
> It should be extended to
> SYNTAX
>         xi:demo-cmd  [options] arg1 arg2
> ARGUMENTS
>         arg1
>                 Description of arg1
>                (required, multi-valued)
>         arg2
>                 Description of arg2
>                 (required)
> OPTIONS
>         --opt1
>                Description of opt1
>                (required, multi-valued)
>         --opt2
>                Description of opt2
>                (required)
>         --opt3
>                Description of opt3
>                (multi-valued)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)