replace '<string>' source name with '[string]'

This commit is contained in:
MihailRis
2024-11-19 09:53:15 +03:00
parent 134deb0ae6
commit c543575150
8 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -418,7 +418,7 @@ Command Command::create(
std::string_view description,
executor_func executor
) {
return CommandParser("<string>", scheme)
return CommandParser("[string]", scheme)
.parseScheme(std::move(executor), description);
}
@@ -440,5 +440,5 @@ Command* CommandsRepository::get(const std::string& name) {
}
Prompt CommandsInterpreter::parse(std::string_view text) {
return CommandParser("<string>", text).parsePrompt(this);
return CommandParser("[string]", text).parsePrompt(this);
}