Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add argument to method translator in configurator.
It's now possible to use CLI argument in a configuration file. Argument with no value required are translated with these rules : 1) Remove trailing - ; 2) Substitute /-(.)/ with \u\1 ; So, '--loop' argument is translated by configurator to method 'loop()'. Argument with at least one value required are translated with these rules : 1) Remove trailing - ; 2) Substitute /-(.)/ with \u\1 ; 3) Add 'set' before the result ; So '--bootstrap-file' argument is translated by configurator to method 'setBootstrapFile()', and -bf argument is translated to method 'setBf()'.
- Loading branch information
Showing
3 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters