mirror of
https://github.com/Yet-Another-DreamTeam/quicknote.git
synced 2026-03-13 00:07:25 +00:00
add command_namespace var
This commit is contained in:
parent
ab657b1e13
commit
5b72287b31
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user