Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Aug 20, 2022
1 parent 7da3104 commit 3a9d068
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 307lib
Submodule 307lib updated 1 files
+1 −1 307modules
2 changes: 1 addition & 1 deletion ckconv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ file(GLOB SRCS
file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/rc")

file(REMOVE "${CMAKE_CURRENT_SOURCE_DIR}/rc/version.h")
MAKE_VERSION_HEADER("${CMAKE_CURRENT_SOURCE_DIR}/rc/version.h" "ckconv" "${ckconv_VERSION}")
MAKE_VERSION_HEADER("${CMAKE_CURRENT_SOURCE_DIR}/rc/version.h" "ckconv" "${ckconv_VERSION_EXTENDED}")

if (WIN32)
set(ckconv_rc "${CMAKE_CURRENT_SOURCE_DIR}/rc/ckconv.rc")
Expand Down
3 changes: 2 additions & 1 deletion ckconv/ckconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct Help {
{
return os
<< "Creation Kit Unit Converter (ckconv) v" << ckconv_VERSION_EXTENDED << '\n'
<< " " << '\n'
<< '\n'
<< "USAGE:" << '\n'
<< " " << h.programName << " [OPTIONS] [<UNIT> <VALUE> <OUTPUT_UNIT> ...]\n"
Expand Down Expand Up @@ -84,6 +83,8 @@ int main(const int argc, char** argv)
// -h | --help
if (const auto& noArgsProvided{ args.empty() }; noArgsProvided || args.check_any<opt3::Flag, opt3::Option>('h', "help")) {
std::cout << Help(programName.generic_string());
if (noArgsProvided)
std::cerr << term::get_fatal(false) << "No arguments provided!" << std::endl;
return 0;
}

This comment has been minimized.

Copy link
@1972adamclarke

1972adamclarke Aug 20, 2022

Beebop and Rocksteady..

// -v | --version
Expand Down

0 comments on commit 3a9d068

Please sign in to comment.