add command_namespace var

This commit is contained in:
lucaspalomodevelop 2023-10-25 21:12:32 +02:00
parent ab657b1e13
commit 5b72287b31

View File

@ -20,18 +20,14 @@ namespace commands
void add()
{
std::cout << command.getCurrentCommand().name << std::endl;
std::string command_namespace = "default";
if (command.existsArg("-n", "--namespace"))
{
std::cout << "namespace: " << command.getArg("-n", "--namespace") << std::endl;
command_namespace = command.getArg("-n", "--namespace");
}
else
{
std::cout << "namespace: "
<< "default" << std::endl;
}
// throw NotImplementedException();
std::cout << "namespace: " << command_namespace << std::endl;
}
void list()