Skip to content

Commit

Permalink
Drop USE_SLASH_CLI_WINDOWS support
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 15, 2024
1 parent d9b9e62 commit 4efe427
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

option(USE_SLASH_CLI_WINDOWS "Whether to use slash command line parameters" OFF)

# library interface
file(GLOB_RECURSE headers_library "${TAPKEE_INCLUDE_DIR}/*.hpp")
add_library(tapkee_library INTERFACE)
Expand Down
16 changes: 1 addition & 15 deletions src/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ template<typename T> auto with_default(T defs)
return cxxopts::value<T>()->default_value(std::to_string(defs));
}

std::vector<const char*> process_argv(int argc, const char** argv)
{
std::vector<const char*> processed;
for (int i=0; i<argc; ++i)
{
processed.push_back(argv[i]);
#if defined(USE_SLASH_CLI_WINDOWS) && (defined(_WIN32) || defined(_WIN64))
// rpplace -- and - with /
#endif
}
return processed;
}

static const char* INPUT_FILE_KEYWORD = "input-file";
static const char* TRANSPOSE_INPUT_KEYWORD = "transpose-input";
static const char* TRANSPOSE_OUTPUT_KEYWORD = "transpose-output";
Expand Down Expand Up @@ -94,7 +81,6 @@ int run(int argc, const char **argv)
srand(static_cast<unsigned int>(time(NULL)));

cxxopts::Options options("tapkee", "Tapkee: a tool for dimension reduction");
auto processed_argv = process_argv(argc, argv);

using namespace std::string_literals;

Expand Down Expand Up @@ -274,7 +260,7 @@ int run(int argc, const char **argv)
)
;

auto opt = options.parse(processed_argv.size(), &processed_argv[0]);
auto opt = options.parse(argc, argv);

if (opt.count(HELP_KEYWORD))
{
Expand Down

0 comments on commit 4efe427

Please sign in to comment.