File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55Copyright (c) 2020 Ayoub Malek and Vanessa Sochat
66
7- This source code is licensed under the terms of the MIT license.
7+ This source code is licensed under the terms of the MIT license.
88For a copy, see <https://opensource.org/licenses/MIT>.
99
1010"""
@@ -75,21 +75,18 @@ def get_parser():
7575 "--cleanup" ,
7676 help = "remove root folder after checking (defaults to False, no cleaup)" ,
7777 default = False ,
78- action = "store_true" ,
7978 )
8079
8180 check .add_argument (
8281 "--force-pass" ,
8382 help = "force successful pass (return code 0) regardless of result" ,
8483 default = False ,
85- action = "store_true" ,
8684 )
8785
8886 check .add_argument (
8987 "--no-print" ,
9088 help = "Skip printing results to the screen (defaults to printing to console)." ,
9189 default = False ,
92- action = "store_true" ,
9390 )
9491
9592 check .add_argument (
@@ -153,7 +150,7 @@ def main():
153150 parser = get_parser ()
154151
155152 def help (return_code = 0 ):
156- """print help, including the software version and active client
153+ """print help, including the software version and active client
157154 and exit with return code.
158155 """
159156
@@ -180,9 +177,10 @@ def help(return_code=0):
180177 else :
181178 print ("Unsupported command %s" % args .command )
182179 sys .exit (0 )
183-
180+
184181 # Pass on to the correct parser
185182 return_code = 0
183+
186184 try :
187185 main (args = args , extra = extra )
188186 sys .exit (return_code )
You can’t perform that action at this time.
0 commit comments