##// END OF EJS Templates
check-seclevel: add a --debug option...
Bryan O'Sullivan -
r27510:020d93c4 default
parent child Browse files
Show More
@@ -127,6 +127,9 b' option.'
127 optparser.add_option("-v", "--verbose",
127 optparser.add_option("-v", "--verbose",
128 help="enable additional output",
128 help="enable additional output",
129 action="store_true")
129 action="store_true")
130 optparser.add_option("-d", "--debug",
131 help="debug mode",
132 action="store_true")
130 optparser.add_option("-f", "--file",
133 optparser.add_option("-f", "--file",
131 help="filename to read in (or '-' for stdin)",
134 help="filename to read in (or '-' for stdin)",
132 action="store", default="")
135 action="store", default="")
@@ -152,6 +155,7 b' option.'
152
155
153 ui = uimod.ui()
156 ui = uimod.ui()
154 ui.setconfig('ui', 'verbose', options.verbose, '--verbose')
157 ui.setconfig('ui', 'verbose', options.verbose, '--verbose')
158 ui.setconfig('ui', 'debug', options.debug, '--debug')
155
159
156 if options.file:
160 if options.file:
157 if checkfile(ui, options.file, options.initlevel):
161 if checkfile(ui, options.file, options.initlevel):
General Comments 0
You need to be logged in to leave comments. Login now