From 44a9c1abe61bf7843ccc6270f59eb82041905e90 Mon Sep 17 00:00:00 2001 From: Steffy-zxf <48793257+Steffy-zxf@users.noreply.github.com> Date: Tue, 16 Apr 2019 10:12:49 +0800 Subject: [PATCH] Update the information about the command show (#7) * Update the information about the command show The command show can list the installed the modules and models. --- docs/command_line_introduction.md | 2 +- paddlehub/commands/show.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/command_line_introduction.md b/docs/command_line_introduction.md index 7a85e2c6..336656c9 100644 --- a/docs/command_line_introduction.md +++ b/docs/command_line_introduction.md @@ -12,7 +12,7 @@ PaddleHub为Module/Model(关于Model和Module的区别,请查看下方的介 ## `show` -用于查看Module的属性,包括Module的名字、版本、描述、作者等信息 +用于查看本地已安装Module的属性或者指定目录下确定的Model或者Module的属性,包括其名字、版本、描述、作者等信息 ## `download` diff --git a/paddlehub/commands/show.py b/paddlehub/commands/show.py index 6c8a0a4f..82947781 100644 --- a/paddlehub/commands/show.py +++ b/paddlehub/commands/show.py @@ -127,6 +127,7 @@ class ShowCommand(BaseCommand): module_dir = os.path.join(cwd, module_name) if not module_dir else module_dir if not module_dir or not os.path.exists(module_dir): + print("%s is not existed!" % module_name) return True self.show_module_info(module_dir) -- GitLab