poafloc

Parser Of Arguments For Lines Of Commands
git clone git://git.dimitrijedobrota.com/poafloc.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |

commitbcfaf8bb42d296a36126dd9e8a2ffca7bd91f659
parent6fb3d52a73320c8c3149e3b316d7c17f9294e0e8
authorDimitrije Dobrota <mail@dimitrijedobrota.com>
dateTue, 11 Jun 2024 10:39:46 +0200

Parser honor Rule of 5

Diffstat:
MCMakeLists.txt|+-
Minclude/args.hpp|+++++

2 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/CMakeLists.txt b/CMakeLists.txt

@@ -3,7 +3,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

project(
args
VERSION 0.0.5
VERSION 0.0.7
DESCRIPTION "Command Line Argument Parser"
LANGUAGES CXX C
)

diff --git a/include/args.hpp b/include/args.hpp

@@ -22,6 +22,11 @@ class Parser {

friend int parse(const argp_t *, int, char **, void *) noexcept;
Parser(const argp_t *argp, void *input);
Parser(const Parser &) = delete;
Parser(Parser &&) = delete;
Parser &operator=(const Parser &) = delete;
Parser &operator=(Parser &&) = delete;
~Parser() noexcept = default;
int parse(int argc, char *argv[], void *input);