Situation
My defaults are often calculated internally based on other parameters (e.g., a certain run mode such as "fast" or "accurate" which influences several internal parameters of the analysis), or even on properties of the input files (e.g., size of a database; read length).
Still, the user should be able to modify each single sub-parameter based on a certain mode.
Thus, with --mode fast --seeding-interval 10 the user would be able to select the fast mode which would calculate a seeding interval of let's say 8, but the user is still able to reset this value.
Problem
Due to the internal calculations, the default value displayed by the -h/--help command is not meaningful.
Example
tool -h
[...]
--parameter Parameter which is calculated automatically. Default: 0
Solution
Two possible solutions:
1.: Allow to turn off the display of default values for certain parameters (or is this already possible? didn't find a way on my own):
tool -h
[...]
--parameter Parameter which is calculated automatically.
- Allow to manually specify default values (as std::string):
tool -h
[...]
--parameter Parameter which is calculated automatically. Default: Calculated based on the selected mode.
Situation
My defaults are often calculated internally based on other parameters (e.g., a certain run mode such as "fast" or "accurate" which influences several internal parameters of the analysis), or even on properties of the input files (e.g., size of a database; read length).
Still, the user should be able to modify each single sub-parameter based on a certain mode.
Thus, with
--mode fast --seeding-interval 10the user would be able to select the fast mode which would calculate a seeding interval of let's say 8, but the user is still able to reset this value.Problem
Due to the internal calculations, the default value displayed by the
-h/--helpcommand is not meaningful.Example
Solution
Two possible solutions:
1.: Allow to turn off the display of default values for certain parameters (or is this already possible? didn't find a way on my own):