kotlinx-cli
kotlinx-cli copied to clipboard
Added DefaultValuePattern to set default value using values of other …
…options
I'm not sure that such sophisticated logic should be a part of argument parsing.
I agree that it looks may be complicated, but it's often needed by compiler and other connected tools. Calculating such options separately can cause more mistakes. Also we need then generated by user help message to describe user how values for some options are calculated. That was already discussed and also should be done, but it isn't full solution for this. We should discuss this feature with more details.