You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mike DeLaurentis (JIRA)" <ji...@apache.org> on 2008/05/12 21:45:55 UTC
[jira] Created: (CLI-155) Allow caller to define ordering of
options in help message
Allow caller to define ordering of options in help message
----------------------------------------------------------
Key: CLI-155
URL: https://issues.apache.org/jira/browse/CLI-155
Project: Commons CLI
Issue Type: Improvement
Components: CLI-1.x
Reporter: Mike DeLaurentis
It would be nice if the caller could define their own ordering of command-line options, as an alternative to alphabetical ordering. I see there's an OptionComparator class within HelpFormatter. Maybe you could add a setOptionComparator(Comparator comp) method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CLI-155) Allow caller to define ordering of options
in help message
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed CLI-155.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.2
svn ci -m "Making the OptionComparator modifiable so people can change the order in which arguments are printed by the HelpFormatter - as requested in CLI-155"
Sending src/java/org/apache/commons/cli/HelpFormatter.java
Sending src/test/org/apache/commons/cli/HelpFormatterTest.java
Transmitting file data ..
Committed revision 655735.
> Allow caller to define ordering of options in help message
> ----------------------------------------------------------
>
> Key: CLI-155
> URL: https://issues.apache.org/jira/browse/CLI-155
> Project: Commons CLI
> Issue Type: Improvement
> Components: CLI-1.x
> Reporter: Mike DeLaurentis
> Fix For: 1.2
>
> Attachments: CLI-155.patch
>
>
> It would be nice if the caller could define their own ordering of command-line options, as an alternative to alphabetical ordering. I see there's an OptionComparator class within HelpFormatter. Maybe you could add a setOptionComparator(Comparator comp) method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLI-155) Allow caller to define ordering of
options in help message
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated CLI-155:
-------------------------------
Component/s: (was: CLI-1.x)
Help formatter
> Allow caller to define ordering of options in help message
> ----------------------------------------------------------
>
> Key: CLI-155
> URL: https://issues.apache.org/jira/browse/CLI-155
> Project: Commons CLI
> Issue Type: Improvement
> Components: Help formatter
> Reporter: Mike DeLaurentis
> Fix For: 1.2
>
> Attachments: CLI-155.patch
>
>
> It would be nice if the caller could define their own ordering of command-line options, as an alternative to alphabetical ordering. I see there's an OptionComparator class within HelpFormatter. Maybe you could add a setOptionComparator(Comparator comp) method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLI-155) Allow caller to define ordering of
options in help message
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell updated CLI-155:
------------------------------
Attachment: CLI-155.patch
Attaching patch that implements this with unit test.
> Allow caller to define ordering of options in help message
> ----------------------------------------------------------
>
> Key: CLI-155
> URL: https://issues.apache.org/jira/browse/CLI-155
> Project: Commons CLI
> Issue Type: Improvement
> Components: CLI-1.x
> Reporter: Mike DeLaurentis
> Attachments: CLI-155.patch
>
>
> It would be nice if the caller could define their own ordering of command-line options, as an alternative to alphabetical ordering. I see there's an OptionComparator class within HelpFormatter. Maybe you could add a setOptionComparator(Comparator comp) method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.