proc-api/src/opt/parseopt.hpp

26 lines
470 B
C++

///////////////////////////////////////////////////////////////////////////////
// Tyler Perkins
// 28-4-22
// parseopt definitions
//
#pragma once
#include <getopt.h>
#include <iostream>
///////////////////////////////////////
// cli options
constexpr char optarg_string[] = "n:p:a:t:h";
struct option_flags {
uint16_t port;
uint16_t threads;
std::string name;
std::string auth_path;
};
void help(char*);
option_flags* parse_options(int, char**);