tox_ngc_ft1_tool/src/command_line.hpp

66 lines
1.1 KiB
C++
Raw Normal View History

#pragma once
#include <string>
// meta:
// -v version info
// -V verbose
// -h help
//
// connectivity:
// -G <chat_id>
// -F profile.tox
// will print friend id at startup
// will autoaccept any invite
// if no -F give, will not save profile.
// if profile exists load, otherwise create new
//
// transfer variant:
// -a id1/sha128_single/sha128_info/sha256_single/sha256_info
//
// send:
// -f send_this_file.zip
//
// receive:
// -d dump/everything/in/this/dir
// -D <id/hash> (what to dl)
struct CommandLine {
std::string exe;
// meta:
// -v
bool version {false};
// -V
bool verbose {false};
// -h
bool help {false};
// connectivity:
// -G <chat_id>
std::string chat_id;
// -F profile.tox
std::string profile_path;
// transfer variant:
// -a id1/sha128_single/sha128_info/sha256_single/sha256_info
// some enum?
// send:
// -f send_this_file.zip
std::string send_path;
// receive:
// -d dump/everything/in/this/dir
std::string receive_dump_dir;
// -D <id/hash> (what to dl)
std::string receive_id;
CommandLine(int argc, char** argv);
void printHelp(void);
bool _should_exit {false};
};