Skip to content

Commit 7dfb675

Browse files
committed
fix: remove trailing " - " in --version output and fix em dash in usage header
1 parent 27d250c commit 7dfb675

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ target/
77
.claude
88
mcpp.lock
99
doctor.log
10+
/.mcpp-bmi/
1011

1112
# editor / OS
1213
.DS_Store

src/cli.cppm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace mcpp::cli {
4646
// canonical printer here so the docs/CHANGELOG examples don't drift
4747
// every time cmdline tweaks its formatting.
4848
void print_usage() {
49-
std::println("mcpp v{} modern C++23 build tool", mcpp::toolchain::MCPP_VERSION);
49+
std::println("mcpp v{} - modern C++23 build tool", mcpp::toolchain::MCPP_VERSION);
5050
std::println("");
5151
std::println("Usage:");
5252
std::println("Project commands:");
@@ -121,7 +121,7 @@ int run(int argc, char** argv) {
121121
std::string_view a = argv[1];
122122
if (a == "--help" || a == "-h") { print_usage(); return 0; }
123123
if (a == "--version" || a == "-V") {
124-
std::println("mcpp {} - ", mcpp::toolchain::MCPP_VERSION);
124+
std::println("mcpp {}", mcpp::toolchain::MCPP_VERSION);
125125
return 0;
126126
}
127127
}

0 commit comments

Comments
 (0)