From aa9fdee45d7b7502c1b3df40a62fdb13dc1c93ab Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 4 Mar 2016 23:56:01 -0500 Subject: [PATCH] init: Delegates to CmdHelpUsage --- src/commands/CmdHelp.cpp | 7 +++++++ src/commands/commands.h | 1 + src/init.cpp | 3 +-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index 723dd68c..554f3b71 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -27,6 +27,13 @@ #include #include +//////////////////////////////////////////////////////////////////////////////// +int CmdHelpUsage () +{ + std::cout << "# usage\n"; + return 0; +} + //////////////////////////////////////////////////////////////////////////////// int CmdHelp () { diff --git a/src/commands/commands.h b/src/commands/commands.h index 77efd7b0..230d96b3 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -34,6 +34,7 @@ int CmdDefault (); int CmdDefine (Rules&); int CmdExport (); int CmdExtension (); +int CmdHelpUsage (); int CmdHelp (); int CmdImport (); int CmdReport (); diff --git a/src/init.cpp b/src/init.cpp index e5ce8366..26e57191 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -195,8 +195,7 @@ int dispatchCommand ( } else if (matches.size () == 0) { - // TODO usage. - std::cout << "# usage\n"; + CmdHelpUsage (); } else {