Skip to content

flap_command_line_interface_t

Command Line Interface (CLI) class.

Source: src/lib/flap_command_line_interface_t.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
MAX_VAL_LENinteger(kind=I4P)parameterMaximum number of characters of CLA value.
ERROR_MISSING_CLAinteger(kind=I4P)parameterCLA not found in CLI.
ERROR_MISSING_GROUPinteger(kind=I4P)parameterGroup not found in CLI.
ERROR_MISSING_SELECTION_CLAinteger(kind=I4P)parameterCLA selection in CLI failing.
ERROR_TOO_FEW_CLASinteger(kind=I4P)parameterInsufficient arguments for CLI.
ERROR_UNKNOWN_CLAS_IGNOREDinteger(kind=I4P)parameterUnknown CLAs passed, but ignored.

Derived Types

command_line_interface

Command Line Interface (CLI) class.

Inheritance

Extends: object

Components

NameTypeAttributesDescription
prognamecharacter(len=:)allocatableProgram name.
versioncharacter(len=:)allocatableProgram version.
helpcharacter(len=:)allocatableHelp message.
help_colorcharacter(len=:)allocatableANSI color of help messages.
help_stylecharacter(len=:)allocatableANSI style of help messages.
help_markdowncharacter(len=:)allocatableLonger help message, markdown formatted.
descriptioncharacter(len=:)allocatableDetailed description.
licensecharacter(len=:)allocatableLicense description.
authorscharacter(len=:)allocatableAuthors list.
epilogcharacter(len=:)allocatableEpilogue message.
m_excludecharacter(len=:)allocatableMutually exclude other CLA(s group).
error_messagecharacter(len=:)allocatableMeaningful error message to standard-error.
error_colorcharacter(len=:)allocatableANSI color of error messages.
error_stylecharacter(len=:)allocatableANSI style of error messages.
examplescharacter(len=512)allocatableExamples of correct usage.
errorinteger(kind=I4P)Error trapping flag.
usage_luninteger(kind=I4P)Output unit to print help/usage messages
version_luninteger(kind=I4P)Output unit to print version message
error_luninteger(kind=I4P)Error unit to print error messages
clasgtype(command_line_arguments_group)allocatableCLA list [1:Na].
argscharacter(len=512)allocatableActually passed command line arguments.
disable_hvlogicalDisable automatic 'help' and 'version' CLAs.
is_parsed_logicalParse status.
ignore_unknown_claslogicalDisable errors-raising for passed unknown CLAs.
error_unknown_clasinteger(kind=I4P)Error trapping flag for unknown CLAs.

Type-Bound Procedures

NameAttributesDescription
free_objectpass(self)Free dynamic memory.
print_versionpass(self)Print version.
print_error_messagepass(self)Print meaningful error message.
set_examplespass(self)Set examples of correct usage.
assign_objectpass(lhs )Assignment overloading.
freeFree dynamic memory.
initInitialize CLI.
add_groupAdd CLAs group CLI.
addAdd CLA to CLI.
is_passedCheck if a CLA has been passed.
is_defined_groupCheck if a CLAs group has been defined.
is_definedCheck if a CLA has been defined.
is_parsedCheck if CLI has been parsed.
set_mutually_exclusive_groupsSet two CLAs group as mutually exclusive.
run_commandCheck if a CLAs group has been run.
parseParse Command Line Interfaces.
getGet CLA value(s) from CLAs list parsed.
get_varyingGet CLA value(s) from CLAs list parsed, varying size list.
usageGet CLI usage.
signatureGet CLI signature.
print_usagePrint correct usage of CLI.
save_bash_completionSave bash completion script (for named CLAs only).
save_man_pageSave CLI usage as man page.
save_usage_to_markdownSave CLI usage as markdown.
erroredTrig error occurence and print meaningful message.
checkCheck data consistency.
check_m_exclusiveCheck if two mutually exclusive CLAs group have been called.
get_clasg_indexesGet CLAs groups indexes.
get_argsGet CLAs.
get_args_from_stringGet CLAs from string.
get_args_from_invocationGet CLAs from CLI invocation.
get_claGet CLA (single) value from CLAs list parsed.
get_cla_listGet CLA multiple values from CLAs list parsed.
get_cla_list_varying_R16PGet CLA multiple values from CLAs list parsed, varying size, R16P.
get_cla_list_varying_R8PGet CLA multiple values from CLAs list parsed, varying size, R8P.
get_cla_list_varying_R4PGet CLA multiple values from CLAs list parsed, varying size, R4P.
get_cla_list_varying_I8PGet CLA multiple values from CLAs list parsed, varying size, I8P.
get_cla_list_varying_I4PGet CLA multiple values from CLAs list parsed, varying size, I4P.
get_cla_list_varying_I2PGet CLA multiple values from CLAs list parsed, varying size, I2P.
get_cla_list_varying_I1PGet CLA multiple values from CLAs list parsed, varying size, I1P.
get_cla_list_varying_logicalGet CLA multiple values from CLAs list parsed, varying size, bool.
get_cla_list_varying_charGet CLA multiple values from CLAs list parsed, varying size, char.
cli_assign_cliCLI assignment overloading.
assignment(=)CLI assignment overloading.

Subroutines

free

Free dynamic memory.

Attributes: elemental

fortran
subroutine free(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.

Call graph

init

Initialize CLI.

fortran
subroutine init(self, progname, version, help, description, license, authors, examples, epilog, disable_hv, usage_lun, error_lun, version_lun, error_color, error_style, ignore_unknown_clas)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
prognamecharacter(len=*)inoptionalProgram name.
versioncharacter(len=*)inoptionalProgram version.
helpcharacter(len=*)inoptionalHelp message introducing the CLI usage.
descriptioncharacter(len=*)inoptionalDetailed description message introducing the program.
licensecharacter(len=*)inoptionalLicense description.
authorscharacter(len=*)inoptionalAuthors list.
examplescharacter(len=*)inoptionalExamples of correct usage.
epilogcharacter(len=*)inoptionalEpilog message.
disable_hvlogicalinoptionalDisable automatic insert of 'help' and 'version' CLAs.
usage_luninteger(kind=I4P)inoptionalUnit number to print usage/help.
error_luninteger(kind=I4P)inoptionalUnit number to print error info.
version_luninteger(kind=I4P)inoptionalUnit number to print version/license info.
error_colorcharacter(len=*)inoptionalANSI color of error messages.
error_stylecharacter(len=*)inoptionalANSI style of error messages.
ignore_unknown_claslogicalinoptionalDisable errors-raising for passed unknown CLAs.

Call graph

add_group

Add CLAs group to CLI.

fortran
subroutine add_group(self, help, description, exclude, examples, group)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
helpcharacter(len=*)inoptionalHelp message.
descriptioncharacter(len=*)inoptionalDetailed description.
excludecharacter(len=*)inoptionalGroup name of the mutually exclusive group.
examplescharacter(len=*)inoptionalExamples of correct usage of the group.
groupcharacter(len=*)inName of the grouped CLAs.

Call graph

set_mutually_exclusive_groups

Set two CLAs group ad mutually exclusive.

fortran
subroutine set_mutually_exclusive_groups(self, group1, group2)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
group1character(len=*)inName of the first grouped CLAs.
group2character(len=*)inName of the second grouped CLAs.

Call graph

add

Add CLA to CLI.

@note If not otherwise declared the action on CLA value is set to "store" a value that must be passed after the switch name or directly passed in case of positional CLA.

@note If not otherwise speficied the CLA belongs to the default group "zero" that is the group of non-grouped CLAs.

@note If CLA belongs to a not yet present group it is created on the fly.

fortran
subroutine add(self, pref, group, group_index, switch, switch_ab, help, help_markdown, help_color, help_style, required, val_required, positional, position, hidden, act, def, nargs, choices, exclude, envvar, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
prefcharacter(len=*)inoptionalPrefixing string.
groupcharacter(len=*)inoptionalName of the grouped CLAs.
group_indexinteger(kind=I4P)inoptionalIndex of the grouped CLAs.
switchcharacter(len=*)inoptionalSwitch name.
switch_abcharacter(len=*)inoptionalAbbreviated switch name.
helpcharacter(len=*)inoptionalHelp message describing the CLA.
help_markdowncharacter(len=*)inoptionalLonger help message, markdown formatted.
help_colorcharacter(len=*)inoptionalANSI color of help messages.
help_stylecharacter(len=*)inoptionalANSI style of help messages.
requiredlogicalinoptionalFlag for set required argument.
val_requiredlogicalinoptionalFlag for set value required for optional argument.
positionallogicalinoptionalFlag for checking if CLA is a positional or a named CLA.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
hiddenlogicalinoptionalFlag for hiding CLA, thus it does not compare into help.
actcharacter(len=*)inoptionalCLA value action.
defcharacter(len=*)inoptionalDefault value.
nargscharacter(len=*)inoptionalNumber of arguments consumed by CLA.
choicescharacter(len=*)inoptionalList of allowable values for the argument.
excludecharacter(len=*)inoptionalSwitch name of the mutually exclusive CLA.
envvarcharacter(len=*)inoptionalEnvironment variable from which take value.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

check

Check data consistency.

fortran
subroutine check(self, pref, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
prefcharacter(len=*)inoptionalPrefixing string.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

check_m_exclusive

Check if two mutually exclusive CLAs group have been called.

fortran
subroutine check_m_exclusive(self, pref)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
prefcharacter(len=*)inoptionalPrefixing string.

Call graph

parse

Parse Command Line Interfaces by means of a previously initialized CLAs groups list.

@note The leading and trailing white spaces are removed from CLA values.

@note If the args argument is passed the command line arguments are taken from it and not from the actual program CLI invocations.

fortran
subroutine parse(self, pref, args, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_clasg_indexes

Get the argument indexes of CLAs groups defined parsing the actual passed CLAs.

fortran
subroutine get_clasg_indexes(self, ai)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
aiinteger(kind=I4P)outallocatableCLAs grouped indexes.

Call graph

get_args_from_string

Get CLAs from string.

fortran
subroutine get_args_from_string(self, args, ai)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
argscharacter(len=*)inString containing command line arguments.
aiinteger(kind=I4P)outallocatableCLAs grouped indexes.

Call graph

get_args_from_invocation

Get CLAs from CLI invocation.

fortran
subroutine get_args_from_invocation(self, ai)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
aiinteger(kind=I4P)outallocatableCLAs grouped indexes.

Call graph

get_cla

Get CLA (single) value from CLAs list parsed.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valclass(*)inoutCLA value.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list

Get CLA multiple values from CLAs list parsed.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valclass(*)inoutCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_R16P

Get CLA multiple values from CLAs list parsed with varying size list, real(R16P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_R16P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valreal(kind=R16P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_R8P

Get CLA multiple values from CLAs list parsed with varying size list, real(R8P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_R8P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valreal(kind=R8P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_R4P

Get CLA multiple values from CLAs list parsed with varying size list, real(R4P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_R4P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valreal(kind=R4P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_I8P

Get CLA multiple values from CLAs list parsed with varying size list, integer(I8P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_I8P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valinteger(kind=I8P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_I4P

Get CLA multiple values from CLAs list parsed with varying size list, integer(I4P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_I4P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valinteger(kind=I4P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_I2P

Get CLA multiple values from CLAs list parsed with varying size list, integer(I2P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_I2P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valinteger(kind=I2P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_I1P

Get CLA multiple values from CLAs list parsed with varying size list, integer(I1P).

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_I1P(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valinteger(kind=I1P)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_logical

Get CLA multiple values from CLAs list parsed with varying size list, logical.

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_logical(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
vallogicaloutallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

get_cla_list_varying_char

Get CLA multiple values from CLAs list parsed with varying size list, character.

@note The CLA list is returned deallocated if values are not correctly gotten.

@note For logical type CLA the value is directly read without any robust error trapping.

fortran
subroutine get_cla_list_varying_char(self, val, pref, args, group, switch, position, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutCLI data.
valcharacter(len=*)outallocatableCLA values.
prefcharacter(len=*)inoptionalPrefixing string.
argscharacter(len=*)inoptionalString containing command line arguments.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

Print correct usage.

fortran
subroutine print_usage(self, pref)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
prefcharacter(len=*)inoptionalPrefixing string.

Call graph

save_bash_completion

Save bash completion script (for named CLAs only).

fortran
subroutine save_bash_completion(self, bash_file, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
bash_filecharacter(len=*)inOutput file name of bash completion script.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

save_man_page

Save CLI usage as man page.

fortran
subroutine save_man_page(self, man_file, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
man_filecharacter(len=*)inOutput file name for saving man page.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

save_usage_to_markdown

Save CLI usage as markdown.

fortran
subroutine save_usage_to_markdown(self, markdown_file, error)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
markdown_filecharacter(len=*)inOutput file name for saving man page.
errorinteger(kind=I4P)outoptionalError trapping flag.

Call graph

errored

Trig error occurrence and print meaningful message.

fortran
subroutine errored(self, error, pref, group, switch)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inoutObject data.
errorinteger(kind=I4P)inError occurred.
prefcharacter(len=*)inoptionalPrefixing string.
groupcharacter(len=*)inoptionalGroup name.
switchcharacter(len=*)inoptionalCLA switch name.

Call graph

cli_assign_cli

Assignment operator.

Attributes: elemental

fortran
subroutine cli_assign_cli(lhs, rhs)

Arguments

NameTypeIntentAttributesDescription
lhsclass(command_line_interface)inoutLeft hand side.
rhstype(command_line_interface)inRight hand side.

Call graph

finalize

Free dynamic memory when finalizing.

Attributes: elemental

fortran
subroutine finalize(self)

Arguments

NameTypeIntentAttributesDescription
selftype(command_line_interface)inoutCLI data.

Functions

is_passed

Check if a CLA has been passed.

Returns: logical

fortran
function is_passed(self, group, switch, position)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
groupcharacter(len=*)inoptionalName of group (command) of CLA.
switchcharacter(len=*)inoptionalSwitch name.
positioninteger(kind=I4P)inoptionalPosition of positional CLA.

Call graph

is_defined_group

Check if a CLAs group has been defined.

Returns: logical

fortran
function is_defined_group(self, group, g) result(defined)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
groupcharacter(len=*)inName of group (command) of CLAs.
ginteger(kind=I4P)outoptionalIndex of group.

Call graph

is_called_group

Check if a CLAs group has been run.

Returns: logical

fortran
function is_called_group(self, group) result(called)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
groupcharacter(len=*)inName of group (command) of CLAs.

Call graph

is_defined

Check if a CLA has been defined.

Returns: logical

fortran
function is_defined(self, switch, group)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
switchcharacter(len=*)inSwitch name.
groupcharacter(len=*)inoptionalName of group (command) of CLAs.

Call graph

is_parsed

Check if CLI has been parsed.

Attributes: elemental

Returns: logical

fortran
function is_parsed(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.

usage

Print correct usage of CLI.

Returns: character(len=:)

fortran
function usage(self, g, pref, no_header, no_examples, no_epilog, markdown) result(usaged)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
ginteger(kind=I4P)inGroup index.
prefcharacter(len=*)inoptionalPrefixing string.
no_headerlogicalinoptionalAvoid insert header to usage.
no_exampleslogicalinoptionalAvoid insert examples to usage.
no_epiloglogicalinoptionalAvoid insert epilogue to usage.
markdownlogicalinoptionalFormat things with markdown

Call graph

signature

Get signature.

Returns: character(len=:)

fortran
function signature(self, bash_completion)

Arguments

NameTypeIntentAttributesDescription
selfclass(command_line_interface)inCLI data.
bash_completionlogicalinoptionalReturn the signature for bash completion.

Call graph