From c9f842fe9328fe5d5a966592c0dd7a518a01b2e3 Mon Sep 17 00:00:00 2001 From: antao Date: Sat, 15 Dec 2018 21:37:08 +0800 Subject: [PATCH] Modify the help information of the drogon_ctl --- drogon_ctl/create.cc | 16 ++++++++-------- drogon_ctl/create.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drogon_ctl/create.cc b/drogon_ctl/create.cc index d3bd0941..1cd621fe 100755 --- a/drogon_ctl/create.cc +++ b/drogon_ctl/create.cc @@ -21,18 +21,18 @@ using namespace drogon_ctl; std::string create::detail() { return "Use create command to create some source files of drogon webapp\n" - "Usage:drogon_ctl create [-options] \n" - "drogon_ctl create view //create HttpView source files from csp file\n" + "Usage:drogon_ctl create [-options] \n\n" + "drogon_ctl create view //create HttpView source files from csp file\n\n" "drogon_ctl create controller [-s] <[namespace::]class_name> //" - "create HttpSimpleController source files\n" + "create HttpSimpleController source files\n\n" "drogon_ctl create controller -h <[namespace::]class_name> //" - "create HttpController source files\n" + "create HttpController source files\n\n" "drogon_ctl create controller -w <[namespace::]class_name> //" - "create WebSocketController source files\n" - "drogon_ctl create project //" - "create a project named project_name\n" + "create WebSocketController source files\n\n" "drogon_ctl create filter //" - "create a filter named class_name\n" + "create a filter named class_name\n\n" + "drogon_ctl create project //" + "create a project named project_name\n\n" "drogon_ctl create model //" "create model classes in model_path\n"; } diff --git a/drogon_ctl/create.h b/drogon_ctl/create.h index b5253059..474dc7cf 100755 --- a/drogon_ctl/create.h +++ b/drogon_ctl/create.h @@ -23,7 +23,7 @@ class create : public DrObject, public CommandHandler { public: virtual void handleCommand(std::vector ¶meters) override; - virtual std::string script() override { return "create controller or view class files"; } + virtual std::string script() override { return "create some source files(Use 'drogon_ctl help create' for more information)"; } virtual bool isTopCommand() override { return true; } virtual std::string detail() override; };