Skip to content
Stefano Zaghi edited this page Mar 23, 2016 · 2 revisions
free

Signature

call cli%free
Meaning

Free (destroy) all your defined CLI options.

Usage

Must be used when you want to re-use your previously defined CLI in order to define a new one:

use flap

type(command_line_interface):: cli

! define CLI
call cli%init(...)
call cli%add(...)
! use CLI
call cli%parse(...)

! free CLI for defining a new one
call cli%free
call cli%init(...)
Clone this wiki locally