mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Verbosity
- Made 'new-id' and 'new-uuid' mutually exclusive.
This commit is contained in:
parent
f9ab71685d
commit
0f38f1decd
2 changed files with 2 additions and 4 deletions
|
@ -56,8 +56,7 @@ int CmdAdd::execute (std::string& output)
|
|||
|
||||
if (context.verbose ("new-id"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
if (context.verbose ("new-uuid"))
|
||||
else if (context.verbose ("new-uuid"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||
|
||||
if (context.verbose ("project"))
|
||||
|
|
|
@ -113,8 +113,7 @@ int CmdDuplicate::execute (std::string& output)
|
|||
|
||||
if (context.verbose ("new-id"))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
if (context.verbose ("new-uuid"))
|
||||
else if (context.verbose ("new-uuid"))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, dup.get ("uuid")) + "\n";
|
||||
|
||||
if (context.verbose ("project"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue