feat: add lost functions for env namespace.
- add some lost functions for env namespace according to Rust std library. hiwever some functions are not implemented. - change some function's signatures located in env namespace. - reduce some useless error kine in env namespace.
This commit is contained in:
@ -113,7 +113,7 @@ namespace yycc::carton::clap::manual {
|
||||
auto executable = ENV::current_exe();
|
||||
if (executable.has_value()) {
|
||||
TERMCOLOR::cprintln(trctx.usage_title, TERMCOLOR::Color::Yellow, TERMCOLOR::Color::Default, TERMCOLOR::Attribute::Default, dst);
|
||||
dst << INDENT << FORMAT::format(trctx.usage_body, executable.value()) << std::endl;
|
||||
dst << INDENT << FORMAT::format(trctx.usage_body, executable.value().u8string()) << std::endl;
|
||||
}
|
||||
|
||||
const auto &variables = app.get_variables();
|
||||
|
||||
Reference in New Issue
Block a user