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-16 16:42:01 -04:00
parent 2180139491
commit dcc6fc8810
3 changed files with 6 additions and 1 deletions

View file

@ -35,3 +35,4 @@ suggestions:
lumbric
Michel Crucifix
Jonathon Bly
Felix Wolfsteller

View file

@ -34,6 +34,8 @@
- TI-22 The 'day' chart crashes if there is an open interval and no others
- TI-25 Work week not blocked off in charts
(thanks to Jonathon Bly).
- TI-34 Make timew more user-friendly by adding --help and default output
(thanks to Felix Wolfsteller).
- timew 0.9.5~alpha install bug
(thanks to Gordon Ball).
- Improved out-of-source build for themes, holidays

View file

@ -68,6 +68,7 @@ void initializeEntities (CLI& cli)
cli.entity ("command", "gaps");
cli.entity ("command", "get");
cli.entity ("command", "help");
cli.entity ("command", "--help");
cli.entity ("command", "join");
cli.entity ("command", "lengthen");
cli.entity ("command", "move");
@ -268,7 +269,8 @@ int dispatchCommand (
*/
else if (command == "gaps") status = CmdGaps (cli, rules, database );
else if (command == "get") status = CmdGet (cli, rules, database );
else if (command == "help") status = CmdHelp (cli, extensions);
else if (command == "help" ||
command == "--help") status = CmdHelp (cli, extensions);
else if (command == "join") status = CmdJoin (cli, rules, database );
else if (command == "lengthen") status = CmdLengthen (cli, rules, database );
else if (command == "month") status = CmdChartMonth (cli, rules, database );