evo-crypter
 
Loading...
Searching...
No Matches
cli.h File Reference

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.
 

Detailed Description

Defines the command-line interface parsing functions for evo-crypter.

Function Documentation

◆ parse_command_line_args()

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.

Parameters
argcThe number of command-line arguments.
argvAn array of strings containing the command-line arguments.
Returns
A Config struct populated with the parsed arguments. The error field will be set to true if any errors are encountered during parsing.