Browse Source

Fix -V option

master
Ricardo Branco 6 years ago
parent
commit
f4097237b4
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      clean_registry.py

+ 5
- 2
clean_registry.py View File

@@ -287,12 +287,15 @@ Options:
287 287
     global args
288 288
     args = parser.parse_args()
289 289
 
290
-    if args.help or not args.container_or_volume:
290
+    if args.help:
291 291
         print('usage: ' + usage)
292
-        sys.exit(0 if args.help else 1)
292
+        sys.exit(0)
293 293
     elif args.version:
294 294
         print(progname + " " + VERSION)
295 295
         sys.exit(0)
296
+    elif not args.container_or_volume:
297
+        print('usage: ' + usage)
298
+        sys.exit(1)
296 299
 
297 300
     for image in args.images:
298 301
         if not check_name(image):

Loading…
Cancel
Save