Demonstrate how to find the value of a command-line flag Running this program as follows with the command
fpm run --example get-flag-value -- --input-file foo
result in normal termination.
Type | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|
type(command_line_t) | :: | command_line | ||||
character(len=*), | parameter | :: | expected_name | = | "some_file_name" | |
character(len=:), | allocatable | :: | input_file_name |