Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit e404b15

Browse files
committed
Only show general help message if no other arguments are given
1 parent c447185 commit e404b15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ubports-qa

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,6 @@ try:
125125
args = parser.parse_args()
126126
args.func(args)
127127
except:
128-
parser.print_help()
128+
try: args
129+
except: pass
130+
else: parser.print_help()

0 commit comments

Comments
 (0)