diff --git a/CMakeLists.txt b/CMakeLists.txt index dfee2d5..01f645d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,9 +6,9 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++20") - add_executable(tarstats_pp main.cpp tarconst.h tarfunc.cpp tarfunc.h) target_link_libraries(tarstats_pp -lz) install(TARGETS tarstats_pp) + diff --git a/tarconst.h b/tarconst.h index 38b480a..ca30dc0 100644 --- a/tarconst.h +++ b/tarconst.h @@ -10,6 +10,9 @@ #include namespace tarconstant { + //global version + inline std::string const version = "v0.9-beta.2"; + // global itemtype definition inline std::string const typeFile = "FILES"; inline std::string const typeDir = "DIRECTORIES"; @@ -35,10 +38,11 @@ namespace tarconstant { "optional arguments\n" "-h this helptext\n" "-j stats in JSON format printed to stdout\n" - "-f print stats to file .txt or .json if -j invoked\n\n" + "-f print stats to file .txt or .json + global.json if -j invoked\n\n" "Find more information as well as full source at github.com/blindi0815/Tarstats-pp." "This software is as is under a GPL 3.0 license.\n\n" - "Written by Marcel Nowicki - github.com/blindi0815"}; + "Written by Marcel Nowicki - github.com/blindi0815/Tarstats_pp\n\n" + "Version information: " + tarconstant::version + "\n"}; } #endif //TARSTATS___TARCONST_H