feat(args): args_handler error handling and print_usage
This commit is contained in:
parent
234713b6a0
commit
e3785dbd08
4 changed files with 183 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define ARGS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
enum input_type
|
||||
{
|
||||
|
|
@ -38,4 +39,10 @@ int args_handler(int argc, char **argv, struct args_options *options);
|
|||
*/
|
||||
void args_print(struct args_options *options);
|
||||
|
||||
/** Prints the usage information for the program.
|
||||
* @param std The output stream to print to (e.g., stdout or stderr).
|
||||
* @param program_name The name of the program.
|
||||
*/
|
||||
void print_usage(FILE *std, const char *program_name);
|
||||
|
||||
#endif /* ARGS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue