mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
26.56.2007 4bf3814d7eefb7ce4e17af501c3711e1b21b5e67
refs
author kenneth_suter <kenneth_suter@localhost>
Wednesday, September 26, 2007 17:56 +0200
committer kenneth_suter <kenneth_suter@localhost>
Wednesday, September 26, 2007 17:56 +0200
commit4bf3814d7eefb7ce4e17af501c3711e1b21b5e67
tree a919c3a4f6adaaa30852f312e0425d972c6e12b0 tree | zip | gz
parent 5ceb2e9601d2501d021d0c61188ec913076555a0 view | diff
Addresses issue 2143 which is intended to help with the readability of the usage statements by allowing options to be grouped logically by type.  Many of the utilities arguments have grown to such an extent that it is difficult to sort through the various types of arguments to find what you are looking for.  For instance the usage statement for the task schedulable arguments are mixed with the LDAP connection arguments which makes them difficult to ignore if they want to use the tool in offline mode.

This code also make consistent the position of standard options (e.g. help, version, quiet, verbose) within usage statements.

ArgumentParser (and SubCommandArgumentParse) have 4 built-in groups: General Options (for help and version commands), LDAP Connection Options (e.g. host, port), Utility Input/Output Options (e.g. quiet, verbose, no-prompt, argument file etc) and default options (for ungrouped arguments). The default group appears first in the list without a header to maintain backward consistency. Other groups can be defined for a usage statement by supplying an ArgumentGroup to the addArgument() method.

1 files added
14 files modified
770 ■■■■ changed files
opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java 4 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/tools.properties 8 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/utility.properties 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/cli/SecureConnectionCliParser.java 20 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/InstallDSArgumentParser.java 6 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPDelete.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPSearch.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ManageTasks.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ToolConstants.java 69 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/tasks/TaskTool.java 11 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/args/ArgumentGroup.java 175 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/args/ArgumentParser.java 347 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java 23 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java 79 ●●●●● diff | view | raw | blame | history