Parsed command line.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | check | = | .false. |
report files that would change; write nothing |
|
| character(len=:), | public, | allocatable | :: | config |
|
||
| logical, | public | :: | diff | = | .false. |
write a diff of the changes; write nothing else |
|
| type(string_t), | public, | allocatable | :: | exclude(:) |
|
||
| type(string_t), | public, | allocatable | :: | extensions(:) |
|
||
| logical, | public | :: | help | = | .false. |
show the |
|
| logical, | public | :: | no_config | = | .false. |
ignore configuration files |
|
| type(string_t), | public, | allocatable | :: | paths(:) |
files, directories, or |
||
| logical, | public | :: | quiet | = | .false. |
do not report warnings |
|
| type(setting_t), | public, | allocatable | :: | settings(:) |
formatting settings given on the command line, in order |
||
| logical, | public | :: | stdout | = | .false. |
write results to standard output |
|
| logical, | public | :: | version | = | .false. |
show the version and do nothing else |
type, public :: cli_t !! Parsed command line. type(setting_t), allocatable :: settings(:) !! formatting settings given on the command line, in order type(string_t), allocatable :: paths(:) !! files, directories, or `-` for standard input type(string_t), allocatable :: exclude(:) !! `--exclude` patterns, added to the configured ones type(string_t), allocatable :: extensions(:) !! `--extensions`; not allocated if not given character(len=:), allocatable :: config !! `--config` file, or `''` logical :: no_config = .false. !! ignore configuration files logical :: stdout = .false. !! write results to standard output logical :: check = .false. !! report files that would change; write nothing logical :: diff = .false. !! write a diff of the changes; write nothing else logical :: quiet = .false. !! do not report warnings logical :: help = .false. !! show the `--help` text and do nothing else logical :: version = .false. !! show the version and do nothing else end type cli_t