You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
698 B

#include <iostream>
#include "cli-parser.hpp"
#include "linuxpe"
int main(int argc, const char** argv)
{
argparse::argument_parser_t cli_parser("llo-stage-one demo", "CLI, LLO, stage one demo...");
cli_parser
.add_argument()
.names({"-i", "--input"})
.required(true)
.description("input file, must be a file format supported by stage one modules...");
cli_parser.enable_help();
auto err = cli_parser.parse(argc, argv);
if (err)
{
std::cout << err << std::endl;
return -1;
}
if ( cli_parser.exists( "help" ) )
{
cli_parser.print_help();
return 0;
}
// win::dos_header_t image_dos;
}