c-md/includes/cli.h.md

689 B

cli.h

Include Guard

#ifndef CLI_H
# define CLI_H

# include <stdint.h>

Types

t_args

Struct to hold command-line arguments.

typedef struct s_args
{
	const char	*ext;
	const char	*input;
	const char	*output;
	const char	*map_path;
	uint8_t		show_help;
}	t_args;

Functions

cli_parse

Parses command-line arguments and populates the t_args structure.

int8_t
cli_parse(t_args *args, int32_t argc, char **argv);

cli_print_help

Prints help information for the command-line interface.

void
cli_print_help(const char *progname);

End Guard

#endif