提交 e0de0d86 编写于 作者: Z Zeyu Chen

update cli help hint

上级 37ed4ebb
......@@ -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 <module_name>' % (ENTRY, name),
......
......@@ -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 <module_name>' % (ENTRY, name),
......
......@@ -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()
......
......@@ -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 <key>' % (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
......
......@@ -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 <module_name/module_dir>' % (ENTRY, name),
......
......@@ -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 <module_name>' % (ENTRY, name),
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册