Sub command
Bug #545750 reported by
Jiaqi Guo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jcli |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Mentioned in http://
"Suppose I wanted to implement a command like the "svn" command, which has subcommands ("svn commit", "svn checkout", and even "svn help commit")? Sub-commands in svn have their own options, as well as the global options. Can JCli help with any of that?"
--http://
Changed in jcli: | |
status: | New → Confirmed |
To post a comment you must log in.
Subcommand can be easily implemented by user on top of current JCli library.
My previous two major commercial projects and Jmxterm open source project all implemented action-based subcommand on top of JCli. The code that figures out bean class based on action name heavily relies on the technology of context and framework. Therefore it's hard for JCli to make assumption and implement a generic version.
Therefore the conclusion is, user need to implement sub command by themselves.