Skip to content
Stefano Zaghi edited this page May 25, 2016 · 5 revisions

1. How do I create manpages using FLAP?

After initializing and constructing a command line interface object, call the save_man_page method. For example:

program MY_PROGRAM
  use penf, only : I4P                    ! Integers and reals precision definition.
  use flap, only : command_line_interface ! Definition of command_line_interface type.
  implicit none
  integer(I4P) :: error
  type(command_line_interface) :: cli
  ! initialize and construct your CLI with the command_line_interface methods
  ! do other things
  call cli%save_man_page(error=error, man_file='MY_PROGRAM.1')
end program
Clone this wiki locally