Skip to content

Commit

Permalink
Add an option for slash-based parameters for windows CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 28, 2019
1 parent 0ce2052 commit 21041d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ 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
2 changes: 1 addition & 1 deletion src/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int run(int argc, const char** argv)
"tapkee -i input.dat -o output.dat --method lle --eigen-method arpack -k 10\n\n";
opt.syntax = "tapkee [options]\n";

#if defined(_WIN32) || defined(_WIN64)
#if defined(USE_SLASH_CLI_WINDOWS) && (defined(_WIN32) || defined(_WIN64))
#define OPT_PREFIX "/"
#define OPT_LONG_PREFIX "/"
#else
Expand Down

0 comments on commit 21041d5

Please sign in to comment.