-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.h
More file actions
32 lines (29 loc) · 1.13 KB
/
Copy pathinit.h
File metadata and controls
32 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef INIT_H
#define INIT_H
#include "args.h"
#include "utils.h" // logging
#include <stdio.h>
#include <errno.h> // errno
#include <limits.h> // UINT32_MAX
#include <getopt.h>
/**
* @brief Parses command-line arguments.
*
* This function processes the command-line arguments passed to
* the program and populates the genome_args and program_args
* structures based on the provided options. It validates the input
* and handles any errors, potentially displaying usage information.
*
* @param argc The number of command-line arguments.
* @param argv An array of command-line argument strings.
* @param genome_args A pointer to array of gargs structures to be filled
* with genome-specific arguments based on
* parsed command-line options.
* @param program_args A pointer to pargs structure that stores global
* program settings and parameters.
*
* @note This function may exit the program if the provided arguments
* are invalid or if there are missing required options.
*/
void parse(int argc, char **argv, g_args_t **genome_args, p_args_t *program_args);
#endif