diff --git a/src/yycc/carton/clap/manual.cpp b/src/yycc/carton/clap/manual.cpp index ebf03d6..2163bd6 100644 --- a/src/yycc/carton/clap/manual.cpp +++ b/src/yycc/carton/clap/manual.cpp @@ -5,6 +5,7 @@ #include "../../patch/libcxx/enumerate.hpp" #include "../../string/op.hpp" #include "../../env.hpp" +#include #include #define CLAP ::yycc::carton::clap @@ -112,8 +113,9 @@ namespace yycc::carton::clap::manual { // only print usage if we can fetch the name of executable auto executable = ENV::current_exe(); if (executable.has_value()) { + // Get the filename part and print TERMCOLOR::cprintln(trctx.usage_title, TERMCOLOR::Color::Yellow, TERMCOLOR::Color::Default, TERMCOLOR::Attribute::Default, dst); - dst << INDENT << FORMAT::format(trctx.usage_body, executable.value().u8string()) << std::endl; + dst << INDENT << FORMAT::format(trctx.usage_body, executable.value().filename().u8string()) << std::endl; } const auto &variables = app.get_variables();