mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement - usage and help commands
- Implemented usage and help commands.
This commit is contained in:
parent
0449f9e0a2
commit
8dfe4bd30a
3 changed files with 7 additions and 7 deletions
|
@ -164,6 +164,7 @@ void Context::dispatch ()
|
|||
else if (cmd.command == "tags") { out = handleTags (); }
|
||||
else if (cmd.command == "colors") { out = handleColor (); }
|
||||
else if (cmd.command == "version") { out = handleVersion (); }
|
||||
else if (cmd.command == "help") { out = longUsage (); }
|
||||
/*
|
||||
else if (command == "info") { out = handleInfo (); }
|
||||
else if (command == "stats") { out = handleReportStats (); }
|
||||
|
@ -172,7 +173,6 @@ void Context::dispatch ()
|
|||
else if (command == "calendar") { out = handleReportCalendar (); }
|
||||
else if (command == "summary") { out = handleReportSummary (); }
|
||||
else if (command == "timesheet") { out = handleReportTimesheet (); }
|
||||
else if (command == "help") { out = longUsage (); }
|
||||
|
||||
// Commands that cause updates.
|
||||
else if (command == "" && task.getId ()) { cmdMod = true; out = handleModify (); }
|
||||
|
@ -197,8 +197,10 @@ void Context::dispatch ()
|
|||
else if (isCustomReport (command)) { if (gc) gcMod = tdb.gc (); out = handleCustomReport (command); }
|
||||
|
||||
// If the command is not recognized, display usage.
|
||||
*/
|
||||
else { out = shortUsage (); }
|
||||
|
||||
/*
|
||||
// Only update the shadow file if such an update was not suppressed (shadow),
|
||||
// and if an actual change occurred (gcMod || cmdMod).
|
||||
if (shadow && (gcMod || cmdMod))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue