Skip to content

Commit

Permalink
CLI Parser 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed May 20, 2024
1 parent c8c92cb commit ea4d32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CLIParser.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <cstring>
#include "CLIParser.hpp"
#include <span>
#include <iostream>

void UCLI::Parser::parse(int argc, char** argv,
ArrayFlag* arrayFlags, size_t arrayFlagsSize,
Expand Down Expand Up @@ -144,7 +145,7 @@ void UCLI::Parser::parseLongArgument(std::vector<char*>& args, uint8_t frontTrun
Pair* pairs, size_t pairsSize,
PairWithFunc* pairsWithFunc, size_t pairsWithFuncSize, bool bCheckShort) noexcept
{
std::string currentTmp = tmp.substr(0, frontTruncate);
std::string currentTmp = tmp.substr(frontTruncate);

FOR_EACH_WITH_CHECK(booleanFlags, booleanFlagsSize, a, {
if (a.longType == currentTmp)
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ add_library(UntitledCLIParser ${UCLI_LIBRARY_TYPE} C/cucli.cpp CLIParser.cpp ${U
target_compile_definitions(UntitledCLIParser PRIVATE UVK_LOG_EXPORT_FROM_LIBRARY UVK_LIB_COMPILE)
target_compile_definitions(UntitledCLIParser PUBLIC UIMGUI_CLI_PARSER_MODULE_ENABLED)
list(APPEND compile_defs "UIMGUI_CLI_PARSER_MODULE_ENABLED")
if (WITH_UTF)
target_compile_definitions(UntitledCLIParser PUBLIC UCLI_COMPILE_WITH_UTF_SUPPORT)
list(APPEND compile_defs "UCLI_COMPILE_WITH_UTF_SUPPORT")
endif()

configure_file(UntitledCLIParser.pc.in UntitledCLIParser.pc @ONLY)

Expand Down

0 comments on commit ea4d32a

Please sign in to comment.