Lines Matching defs:substrs
24 def check_help_options(self, cmd_name, opt_list, substrs=[]):
28 Any strings already in substrs will also be checked.
33 substrs.append(elem[1:])
36 substrs.append(f"-{short_opt} <{type}> ( --{long_opt} <{type}> )")
37 self.expect("help " + cmd_name, substrs=substrs)
126 self.expect("help", substrs=["no-args", "one-arg-no-opt", "two-args"])
154 substrs = [
159 self.check_help_options("no-args", no_arg_opts, substrs)
164 substrs=["'no-args' doesn't take any arguments."],
171 substrs=["Error setting option: bool-arg to Something"],
177 substrs=["error: Error setting option: enum-option to Something"],
184 substrs=["error: invalid combination of options for the given command"],
191 substrs=[
203 substrs=[
214 substrs=[
253 substrs=["0: First Argument", "1: Second Argument"],