fmv1992.fmv1992_scala_utilities.cli
Parse a CLI config file. This file consists of:
1. Empty lines.
2. Comment lines: Starting with spaces followed by '#'.
3. A 'name:' followed by nested (space indented) attributes.
Mandatory attributes:
a. 'help:': the help text. b. 'n:': the number of subsequent arguments to be parsed. c. 'type:': data type of the parsed arguments.
Example:
name: debug n: 0 type: int help: Help text.
name: verbose n: 0 type: int help: Help text.
This design is influenced by <https://github.com/fpinscala/fpinscala>.
Parse a CLI config file. This file consists of:
1. Empty lines.
2. Comment lines: Starting with spaces followed by '#'.
3. A 'name:' followed by nested (space indented) attributes.
Mandatory attributes:
a. 'help:': the help text. b. 'n:': the number of subsequent arguments to be parsed. c. 'type:': data type of the parsed arguments.
Example:
name: debug n: 0 type: int help: Help text.
name: verbose n: 0 type: int help: Help text.
This design is influenced by <https://github.com/fpinscala/fpinscala>.