cli_t Derived Type

type, public :: cli_t

Parsed command line.


Inherits

type~~cli_t~~InheritsGraph type~cli_t cli_t type~setting_t setting_t type~cli_t->type~setting_t settings type~string_t string_t type~cli_t->type~string_t paths, exclude, extensions

Components

Type Visibility Attributes Name Initial
logical, public :: check = .false.

report files that would change; write nothing

character(len=:), public, allocatable :: config

--config file, or ''

logical, public :: diff = .false.

write a diff of the changes; write nothing else

type(string_t), public, allocatable :: exclude(:)

--exclude patterns, added to the configured ones

type(string_t), public, allocatable :: extensions(:)

--extensions; not allocated if not given

logical, public :: help = .false.

show the --help text and do nothing else

logical, public :: no_config = .false.

ignore configuration files

type(string_t), public, allocatable :: paths(:)

files, directories, or - for standard input

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


Source Code

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