TI-34: Make timew more user-friendly by adding --help and default output

- Thanks to Felix Wolfsteller.
This commit is contained in:
Paul Beckingham 2016-08-12 08:10:32 -04:00
parent f743ccc93a
commit a37e4746ad
2 changed files with 20 additions and 1 deletions

View file

@ -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 ---------------------------

View file

@ -45,7 +45,22 @@ int CmdDefault (Rules& rules, Database& database)
else
{
if (rules.getBoolean ("verbose"))
std::cout << "There is no active time tracking.\n";
{
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;
}