You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
There's potential duplication of kovri options in:
Boost program options
kovri.conf
Bash completion script
man page
The manual management is error-prone as discussed in #610 .
We need to choose only one to manage
and generate the others with automation.
Keep it DRY and on SPOT :)
Boost program options or kovri --help seems to be the best candidate for being one true source.
However, it currently lacks important information like argument types and option descriptions.
With this information complete, it should be possible to cover the other formats,
for example, with help2man or bash scripts.
This additional information is helpful for deducing the hints.
Only bool and path arguments are added.
Adding type information with Boost program options
is verbose and repetitive due to lack of reflection.
Macros can help, but it is still ugly.
Issue monero-project#611
rakhimov
added a commit
to rakhimov/kovri
that referenced
this issue
Apr 6, 2017
The refactoring removes
most hard-coded options in the completion script.
The suggestions are deduced from argument types (path, bool).
Issue monero-project#611.
There's potential duplication of kovri options in:
The manual management is error-prone as discussed in #610 .
We need to choose only one to manage
and generate the others with automation.
Keep it DRY and on SPOT :)
Boost program options or
kovri --help
seems to be the best candidate for being one true source.However, it currently lacks important information like argument types and option descriptions.
With this information complete, it should be possible to cover the other formats,
for example, with
help2man
or bash scripts.Helpful info:
By submitting this issue, I confirm the following:
The text was updated successfully, but these errors were encountered: