Defines the command-line interface parsing functions for evo-crypter. More...
#include "mod.h"
Go to the source code of this file.
Functions | |
Config | parse_command_line_args (int argc, char *argv[]) |
Parses command-line arguments and populates the Config struct. | |
Defines the command-line interface parsing functions for evo-crypter.
Config parse_command_line_args | ( | int | argc, |
char * | argv[] | ||
) |
Parses command-line arguments and populates the Config struct.
This function handles the initial parsing of command-line arguments. It identifies flags and their associated values, and it stores them in a preliminary Config object. Further validation and processing of the configuration is done in initialize_config
.
argc | The number of command-line arguments. |
argv | An array of strings containing the command-line arguments. |
error
field will be set to true
if any errors are encountered during parsing.