Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacobwilliams/argv-fortran

A better get_command_argument for Fortran
https://github.com/jacobwilliams/argv-fortran

argv fortran fortran-package-manager

Last synced: about 6 hours ago
JSON representation

A better get_command_argument for Fortran

Awesome Lists containing this project

README

        

# argv-fortran

A better `get_command_argument` for Fortran that returns the argument in an allocatable character string.

### Usage

To use `argv-fortran` within your fpm project, add the following to your `fpm.toml` file:
```toml
[dependencies]
argv-fortran = { git="https://github.com/jacobwilliams/argv-fortran.git" }
```

### Example

```fortran
program test

use argv_module

implicit none

character(len=:),allocatable :: arg

arg = argv(1) ! get the first argument

end program test
```