This program serves the dual purposes of 1. Showing how to use the command_line_t derived type to check whether a command-line argument is present and 2. Supporting the test suite verification of this same behavior.
Running this program as follows with the command
fpm run --example check-command-line-argument -- --some-argument
should result in normal termination.
Type | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|
logical | :: | argument_passed | ||||
type(command_line_t) | :: | command_line |