diff --git a/AUTHORS b/AUTHORS index 38ad921d..79250894 100644 --- a/AUTHORS +++ b/AUTHORS @@ -35,3 +35,4 @@ suggestions: lumbric Michel Crucifix Jonathon Bly + Felix Wolfsteller diff --git a/ChangeLog b/ChangeLog index e804af7a..b6920ae7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/init.cpp b/src/init.cpp index 5443fcf1..d966a65e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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 );