Set command line interface.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(command_line_interface), | intent(inout) | :: | cli | Command line interface handler. |
subroutine set_cli(cli)
!< Set command line interface.
type(command_line_interface), intent(inout) :: cli !< Command line interface handler.
call cli%add_group(description='oscillation test settings', group='oscillation')
call cli%add(group='oscillation', switch='--frequency', switch_ab='-f', help='frequency', required=.false., def='1e-4', &
act='store')
call cli%add(group='oscillation', switch='--U0', switch_ab='-U0', nargs='2', help='initial state', required=.false., &
def='0.0 1.0', act='store')
endsubroutine set_cli