mirror of
https://github.com/sametersoylu/argument-parser.git
synced 2026-05-28 11:58:12 +00:00
- Add should_exit support to v2 platform parsers - Introduce macros.h and integrate trait hints - Wire CMake packaging with config, version, and install dirs - Update parser traits to include validation hooks and fixes
42 lines
782 B
Plaintext
42 lines
782 B
Plaintext
#pragma once
|
|
#ifndef ARGPARSE_HPP
|
|
#define ARGPARSE_HPP
|
|
#include <argument_parser.hpp>
|
|
#include "macros.h"
|
|
|
|
#ifdef __linux__
|
|
#include <linux_parser.hpp>
|
|
namespace argument_parser {
|
|
using parser = linux_parser;
|
|
}
|
|
|
|
namespace argument_parser::v2 {
|
|
using parser = linux_parser;
|
|
}
|
|
#elif __APPLE__
|
|
#include <macos_parser.hpp>
|
|
namespace argument_parser {
|
|
using parser = macos_parser;
|
|
}
|
|
|
|
namespace argument_parser::v2 {
|
|
using parser = macos_parser;
|
|
}
|
|
#elif _WIN32
|
|
#include <windows_parser.hpp>
|
|
namespace argument_parser {
|
|
using parser = windows_parser;
|
|
}
|
|
|
|
namespace argument_parser::v2 {
|
|
using parser = windows_parser;
|
|
}
|
|
#else
|
|
#error "Unsupported platform"
|
|
#endif
|
|
#endif
|
|
|
|
#include <base_convention.hpp>
|
|
#include <gnu_argument_convention.hpp>
|
|
#include <windows_argument_convention.hpp>
|