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

Daniel Kulp commented on CXF-3245:
----------------------------------


For the most part, I'm OK with this.   Many unix tools general provide both a 
"short form" and a "long form" for many of the options.   Example  "ls --color" 
is the same as "ls -C".   Thus, if the tools only support the "long form" right 
now have the short form added and the vice versa, that can make things much 
more consistent.

This is also fairly easy to do.   The toolspec parser schema has the "switch" 
element as unbounded.   Thus, you should be able to add additional switches 
without ANY changes to the code.   You don't need the cp == null || classpath 
== null type things as the ToolContext used internally would lookup via option 
ID.  

For example, if you edit 
tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/java2js.xml  and 
just add <switch>db</switch> into the section for the databinding, it should 
"just work".  (although please test.  ;-)  )



> Command line options are not uniform across CXF tools
> -----------------------------------------------------
>
>                 Key: CXF-3245
>                 URL: https://issues.apache.org/jira/browse/CXF-3245
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.3.1
>            Reporter: Robert Liguori
>            Priority: Trivial
>         Attachments: command line options for tooling.doc
>
>
> 1) Add -classpath option to java2js and java2wsdl.
> Rationale: The java2js and java2wsdl commands use the -cp option.   Consider 
> adding -classpath to these two commands to serve the same purpose.  Case 
> study: java and javac support both the -cp and -classpath options.
> 2) Add -fe to java2wsdl and -frontend to wsdl2java.
> Rationale. wsdl2java supports -fe and not -frontend. java2wsdl supports 
> -frontend and not -fe. Since the options provide the same feature, why not 
> have command utilities support both options.
> 3) Add -address to wsdl2xml, wsdl2service, wsdl2corba and idl2wsdl. and -a to 
> java2wsdl.
> Rationale. java2wsdl uses -address and not -a. wsdl2xml, wsdl2service, 
> wsdl2corba and idl2wsdl use -a and not -address. Since they appear to serve 
> the same or similar purposes (i.e., the corba address for one command differs 
> slightly from the port address of the other command), I recommend supporting 
> -address wherever -a is used and supporting -a wherever -address is used.
> 4) Support -db where -databinding is used and suport -databinding where -db 
> is used. The commands java2js, java2wsdl and wsdl2java would be affected.
> 5) Examine and streamline the use of the -o option. Consider supporting the 
> -output flag where ever this is used, if appropriate.
> Please examine the supporting spreadsheet for more information.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to