cli_args_type Derived Type

type, public :: cli_args_type

Container for parsed command line arguments

Stores file paths and options extracted from command line, with automatic memory management for string allocations.


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: basis_name

Basis set name (e.g., “6-31G”)

character(len=:), public, allocatable :: xyz_file

Input XYZ geometry file path


Type-Bound Procedures

procedure, public :: destroy => cli_args_destroy

Memory cleanup

  • private subroutine cli_args_destroy(this)

    Clean up CLI args

    Arguments

    Type IntentOptional Attributes Name
    class(cli_args_type), intent(inout) :: this

Source Code

   type :: cli_args_type
      !! Container for parsed command line arguments
      !!
      !! Stores file paths and options extracted from command line,
      !! with automatic memory management for string allocations.
      character(len=:), allocatable :: xyz_file    !! Input XYZ geometry file path
      character(len=:), allocatable :: basis_name  !! Basis set name (e.g., "6-31G")
   contains
      procedure :: destroy => cli_args_destroy  !! Memory cleanup
   end type cli_args_type