Remove Util::dirname and finally the util files

This commit is contained in:
Luis Díaz Más
2022-02-14 22:03:38 +01:00
committed by Luis Diaz
parent 1b912fa887
commit 405f4b5f1b
17 changed files with 79 additions and 260 deletions
+5 -3
View File
@@ -25,15 +25,17 @@
// included header files
#include <assert.h>
#include <errno.h>
#include <filesystem>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <iostream>
#include "utils.hpp"
#include "getopt.hpp"
namespace fs = std::filesystem;
namespace Util {
// https://raw.githubusercontent.com/skeeto/getopt/master/getopt.h
@@ -113,7 +115,7 @@ namespace Util {
int Getopt::getopt(int argc, char* const argv[], const std::string& optstring)
{
progname_ = Util::basename(argv[0]);
progname_ = fs::path(argv[0]).filename().string();
Util::optind = 0; // reset the Util::Getopt scanner
for (;!errcnt_;) {