short option for watch-logs --follow

Related: https://pagure.io/koji/issue/3909
This commit is contained in:
Tomas Kopecek 2023-08-28 13:23:31 +02:00
parent 1310f22b80
commit 9f1f5b674d
2 changed files with 6 additions and 6 deletions

View file

@ -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:

View file

@ -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):