flags.push_back(CLI::Flag('h',"help","print help and exit"));
flags.push_back(CLI::Flag('l',"license","print license information and exit"));
flags.push_back(CLI::Flag('x',"hexadecimal","print numbers in hex format"));
std::vector<CLI::Option>options;
std::vector<CLI::Argument>arguments;
arguments.push_back(CLI::Argument("FILE","path of the file to work on"));
CLI::ArgumentsParsercliParser=CLI::ArgumentsParser(argc,argv,flags,options,arguments,"Present NBT in human or machine readable formats - preliminary implementation.");
if(cliParser.getFlag("help").value){
std::cout<<cliParser.getUsage()<<std::endl;
returnEXIT_SUCCESS;
}
if(cliParser.getFlag("license").value){
std::cout
<<"Copyright 2022, FOSS-VG Developers and Contributers\n"
<<"\n"
<<"DumpNBT is part of the FOSS-VG development tool suite.\n"
<<"\n"
<<"This program is free software: you can redistribute it and/or modify it\n"
<<"under the terms of the GNU Affero General Public License as published\n"
<<"by the Free Software Foundation, version 3.\n"
<<"\n"
<<"This program is distributed in the hope that it will be useful,\n"
<<"but WITHOUT ANY WARRANTY; without even the implied\n"
<<"warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
<<"See the GNU Affero General Public License for more details.\n"
<<"\n"
<<"You should have received a copy of the GNU Affero General Public License\n"
<<"version 3 along with this program.\n"
<<"If not, see https://www.gnu.org/licenses/agpl-3.0.en.html"