mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
TI-34: Make timew more user-friendly by adding --help and default output
- Thanks to Felix Wolfsteller.
This commit is contained in:
parent
f743ccc93a
commit
a37e4746ad
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
1.0.0 () -
|
||||
|
||||
- TI-34 Make timew more user-friendly by adding --help and default output
|
||||
(thanks to Felix Wolfsteller).
|
||||
|
||||
------ current release ---------------------------
|
||||
|
||||
|
|
|
@ -45,7 +45,22 @@ int CmdDefault (Rules& rules, Database& database)
|
|||
else
|
||||
{
|
||||
if (rules.getBoolean ("verbose"))
|
||||
{
|
||||
if (rules.getBoolean ("temp.shiny"))
|
||||
std::cout << '\n'
|
||||
<< "Welcome to Timewarrior.\n"
|
||||
<< '\n'
|
||||
<< "There is built-in help:\n"
|
||||
<< " timew help\n"
|
||||
<< " timew help <command>\n"
|
||||
<< " (and more)\n"
|
||||
<< '\n'
|
||||
<< "There is a fully-detailed man page:\n"
|
||||
<< " man timew\n"
|
||||
<< '\n';
|
||||
else
|
||||
std::cout << "There is no active time tracking.\n";
|
||||
}
|
||||
|
||||
status = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue