From e0de0d864ff9f9b61eddb57416e6cf1673a6e937 Mon Sep 17 00:00:00 2001 From: Zeyu Chen Date: Wed, 3 Apr 2019 20:47:11 +0800 Subject: [PATCH] update cli help hint --- paddlehub/commands/download.py | 2 +- paddlehub/commands/install.py | 2 +- paddlehub/commands/list.py | 2 +- paddlehub/commands/search.py | 4 ++-- paddlehub/commands/show.py | 2 +- paddlehub/commands/uninstall.py | 2 +- paddlehub/commands/version.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/paddlehub/commands/download.py b/paddlehub/commands/download.py index 0b935a3a..2c414148 100644 --- a/paddlehub/commands/download.py +++ b/paddlehub/commands/download.py @@ -31,7 +31,7 @@ class DownloadCommand(BaseCommand): def __init__(self, name): super(DownloadCommand, self).__init__(name) self.show_in_help = True - self.description = "Download a baidu NLP model." + self.description = "Download PaddlePaddle pretrained model files." self.parser = self.parser = argparse.ArgumentParser( description=self.__class__.__doc__, prog='%s %s ' % (ENTRY, name), diff --git a/paddlehub/commands/install.py b/paddlehub/commands/install.py index 1ce0b6ad..c0186c8f 100644 --- a/paddlehub/commands/install.py +++ b/paddlehub/commands/install.py @@ -29,7 +29,7 @@ class InstallCommand(BaseCommand): def __init__(self, name): super(InstallCommand, self).__init__(name) self.show_in_help = True - self.description = "Install the specific module to current environment." + self.description = "Install PaddleHub module." self.parser = self.parser = argparse.ArgumentParser( description=self.__class__.__doc__, prog='%s %s ' % (ENTRY, name), diff --git a/paddlehub/commands/list.py b/paddlehub/commands/list.py index b7d68e99..395ae489 100644 --- a/paddlehub/commands/list.py +++ b/paddlehub/commands/list.py @@ -29,7 +29,7 @@ class ListCommand(BaseCommand): def __init__(self, name): super(ListCommand, self).__init__(name) self.show_in_help = True - self.description = "List all modules install in current environment." + self.description = "List all installed PaddleHub modules." def exec(self, argv): all_modules = default_module_manager.all_modules() diff --git a/paddlehub/commands/search.py b/paddlehub/commands/search.py index 588cb114..465ba045 100644 --- a/paddlehub/commands/search.py +++ b/paddlehub/commands/search.py @@ -30,7 +30,7 @@ class SearchCommand(BaseCommand): def __init__(self, name): super(SearchCommand, self).__init__(name) self.show_in_help = True - self.description = "Search a paddle hub module with keyword." + self.description = "Search PaddleHub pretrained model through model keywords" self.parser = self.parser = argparse.ArgumentParser( description=self.__class__.__doc__, prog='%s %s ' % (ENTRY, name), @@ -39,7 +39,7 @@ class SearchCommand(BaseCommand): def exec(self, argv): if not argv: - print("ERROR: Please specify a key\n") + print("ERROR: Please specify module name.\n") self.help() return False diff --git a/paddlehub/commands/show.py b/paddlehub/commands/show.py index ed15b563..848e8a83 100644 --- a/paddlehub/commands/show.py +++ b/paddlehub/commands/show.py @@ -32,7 +32,7 @@ class ShowCommand(BaseCommand): def __init__(self, name): super(ShowCommand, self).__init__(name) self.show_in_help = True - self.description = "Show the specify module's info." + self.description = "Show the information of PaddleHub module." self.parser = self.parser = argparse.ArgumentParser( description=self.__class__.__doc__, prog='%s %s ' % (ENTRY, name), diff --git a/paddlehub/commands/uninstall.py b/paddlehub/commands/uninstall.py index b9652d25..5b372a7a 100644 --- a/paddlehub/commands/uninstall.py +++ b/paddlehub/commands/uninstall.py @@ -30,7 +30,7 @@ class UninstallCommand(BaseCommand): def __init__(self, name): super(UninstallCommand, self).__init__(name) self.show_in_help = True - self.description = "Uninstall the specific module from current environment." + self.description = "Uninstall PaddleHub module." self.parser = self.parser = argparse.ArgumentParser( description=self.__class__.__doc__, prog='%s %s ' % (ENTRY, name), diff --git a/paddlehub/commands/version.py b/paddlehub/commands/version.py index b0c1696c..24dc4ae6 100644 --- a/paddlehub/commands/version.py +++ b/paddlehub/commands/version.py @@ -27,7 +27,7 @@ class VersionCommand(BaseCommand): def __init__(self, name): super(VersionCommand, self).__init__(name) self.show_in_help = True - self.description = "Get the paddle hub version." + self.description = "Show PaddleHub's version." def exec(self, argv): print("hub %s" % version.hub_version) -- GitLab