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: 2 months ago
JSON representation
A better get_command_argument for Fortran
- Host: GitHub
- URL: https://github.com/jacobwilliams/argv-fortran
- Owner: jacobwilliams
- License: bsd-3-clause
- Created: 2022-02-21T15:20:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T15:45:08.000Z (almost 4 years ago)
- Last Synced: 2025-06-16T06:49:40.804Z (6 months ago)
- Topics: argv, fortran, fortran-package-manager
- Language: Fortran
- Homepage:
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```