feat(args): args_handler error handling and print_usage

This commit is contained in:
william.valenduc 2026-01-12 19:30:11 +00:00
parent 234713b6a0
commit e3785dbd08
4 changed files with 183 additions and 6 deletions

View file

@ -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 */