From 9f1f5b674dcc4f6b1f7c9b58a5400148188331da Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Sep 22 2023 07:26:31 +0000 Subject: short option for watch-logs --follow Related: https://pagure.io/koji/issue/3909 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 28d4418..f47d14c 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 e6788fe..0e304cd 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):