Skip to content

CLI Method print_usage

Stefano Zaghi edited this page Mar 23, 2016 · 3 revisions

print_usage

Signature

call cli%print_usage(pref)
Meaning

Print the correct usage of the CLI.

Dummy arguments
character(*), optional, intent(in) :: pref !< Prefixing string.

In general the print_usage method should not be used from the end-user because it is already safely (and automatically) used by the library. However, for taking into account very peculiar circumstances, it is publicly exposed.

Usage

Must be used for printing the correct usage of the CLI

use flap
...
type(command_line_interface):: cli

call cli%init(...)
call cli%add(...)

! directly print the usage for your obscure aims...
call cli%print_usage
Clone this wiki locally