Merge "Added "/" check when list containers."

This commit is contained in:
Jenkins 2013-02-28 02:58:28 +00:00 committed by Gerrit Code Review
commit 999e1c0f02

@ -527,7 +527,7 @@ def st_list(parser, args, print_queue, error_queue):
args = args[1:]
if options.delimiter and not args:
exit('-d option only allowed for container listings')
if len(args) > 1:
if len(args) > 1 or len(args) == 1 and args[0].find('/') >= 0:
error_queue.put('Usage: %s [options] %s' %
(basename(argv[0]), st_list_help))
return