mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
This change eliminates the BisqExecutable.description method and replaces it with proper use of the `describedAs` and `defaultsTo` methods in the JOptSimple API. This removes the concern of formatting option argument descriptions and default values from the BisqExecutable class, and delegates it to the new BisqHelpFormatter (see previous commit), which is designed for the purpose. For example, prior to this commit, the help text for the --banList option read as follows: --banList=<value> Nodes to exclude from network connections. (default: ) Now it reads as follows: --banList=<host:port[,...]> Nodes to exclude from network connections. Likewise, previous to this commit, the --logLevel option read as follows: --logLevel=<value> Log level [OFF, ALL, ERROR, WARN, INFO, DEBUG, TRACE] (default: INFO) And now it reads like this: --logLevel=<OFF|ALL|ERROR|WARN|INFO|DEBUG|TRACE> (default: INFO) Log level There are a number of further improvements that can and should be made to the description text of the various options, the types specified for their arguments, etc, but these will be handled in subsequent commits. This commit is strictly about refactoring existing parser configuration to take advantage of the new BisqHelpFormatter. |
||
---|---|---|
.. | ||
.tx | ||
src | ||
update_translations.sh |