diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 3cca38f1..55cdb7a0 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -6473,7 +6473,7 @@ def anon_handle_watch_logs(goptions, session, args): parser.add_option("--mine", action="store_true", help="Watch logs for all your tasks, task_id arguments are forbidden in " "this case.") - parser.add_option("--follow", action="store_true", help="Follow spawned child tasks") + parser.add_option("-f", "--follow", action="store_true", help="Follow spawned child tasks") (options, args) = parser.parse_args(args) if options.mine: diff --git a/tests/test_cli/test_watch_logs.py b/tests/test_cli/test_watch_logs.py index e6788fee..0e304cd6 100644 --- a/tests/test_cli/test_watch_logs.py +++ b/tests/test_cli/test_watch_logs.py @@ -28,11 +28,11 @@ class TestWatchLogs(utils.CliTestCase): (Specify the --help global option for a list of other help options) Options: - -h, --help show this help message and exit - --log=LOG Watch only a specific log - --mine Watch logs for all your tasks, task_id arguments are forbidden - in this case. - --follow Follow spawned child tasks + -h, --help show this help message and exit + --log=LOG Watch only a specific log + --mine Watch logs for all your tasks, task_id arguments are forbidden + in this case. + -f, --follow Follow spawned child tasks """ % self.progname) def test_watch_task_mine_and_task_id(self):