From 1738ba1ea1e8a8a5839f013ceacdcdccf9846ebb Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Sep 2017 20:18:04 +0200 Subject: [PATCH] Add help screen to the command on wrong argument --- exporter/main.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/exporter/main.php b/exporter/main.php index 70c9992..796f5e4 100755 --- a/exporter/main.php +++ b/exporter/main.php @@ -107,6 +107,31 @@ } break; + /* (4) Help message + ---------------------------------------------------------*/ + default: { + + echo "xfw: xdrm framework\n"; + echo "\n"; + echo "COMMANDS\n"; + echo "\tinit\n"; + echo "\t\tInitialize a new framework environment.\n"; + echo "\n"; + echo "\tpackages\n"; + echo "\t\tList all available packages and its versions.\n"; + echo "\n"; + echo "\tinstall @pkg_name:@version\n"; + echo "\t\tAdd the version @version of the package @pkg_name to the environment.\n"; + echo "\n"; + echo "\tremove @pkg_name\n"; + echo "\t\tRemove the package @pkg_name from the environment.\n"; + echo "\n"; + echo "\tbuild @root_path\n"; + echo "\t\tBuild from the environment at the location @root_path.\n"; + echo "\n"; + + } break; + }