Lines Matching full:command
35 from webkitpy.tool.multicommandtool import MultiCommandTool, Command, TryAgain
38 class TrivialCommand(Command):
42 Command.__init__(self, "help text", **kwargs)
53 class LikesToRetry(Command):
58 Command.__init__(self, "help text", **kwargs)
76 self.assertEqual(Command._parse_required_arguments("ARG1 ARG2"), ["ARG1", "ARG2"])
77 self.assertEqual(Command._parse_required_arguments("[ARG1] [ARG2]"), [])
78 self.assertEqual(Command._parse_required_arguments("[ARG1] ARG2"), ["ARG2"])
80 self.assertRaises(Exception, Command._parse_required_arguments, "[ARG1 ARG2]")
96 def should_execute_command(self, command):
105 # MultiCommandToolTest._split_command_name_from_args returns: (command, args)
106 full_args = ["--global-option", "command", "--option", "arg"]
107 full_args_expected = ("command", ["--global-option", "--option", "arg"])
114 full_args = ["command", "arg"]
115 full_args_expected = ("command", ["arg"])
119 # This also tests Command auto-discovery.
136 expected_common_commands_help = """Usage: trivial-tool [options] COMMAND [ARGS]
145 See 'trivial-tool help COMMAND' for more information on a specific command.
150 expected_all_commands_help = """Usage: trivial-tool [options] COMMAND [ARGS]
161 See 'trivial-tool help COMMAND' for more information on a specific command.