Handle command line arguments. More...
#include <stdio.h>

Go to the source code of this file.
Data Structures | |
| struct | CommandSt |
| A structure to hold the value of every run-time parameter that can be read from the command line. More... | |
Typedefs | |
| typedef struct CommandSt | Command |
| A structure to hold the value of every run-time parameter that can be read from the command line. More... | |
Functions | |
| Command | parseCommandLine (int argc, char **argv) |
| Process command line arguments into an easy to handle structure. More... | |
| void | printCmdYaml (FILE *file, Command *cmd) |
| Print run parameters in yaml format on the supplied output stream. More... | |
Handle command line arguments.
Definition in file mycommand.h.
A structure to hold the value of every run-time parameter that can be read from the command line.
| Command parseCommandLine | ( | int | argc, |
| char ** | argv | ||
| ) |
Process command line arguments into an easy to handle structure.
Initialize a Command structure with default values, then parse any command line arguments that were supplied to overwrite defaults.
| [in] | argc | the number of command line arguments |
| [in] | argv | the command line arguments array |
Definition at line 186 of file mycommand.c.


| void printCmdYaml | ( | FILE * | file, |
| Command * | cmd | ||
| ) |
Print run parameters in yaml format on the supplied output stream.
Definition at line 252 of file mycommand.c.

