PR#3884: short option for watch-logs --follow
Merges #3884 https://pagure.io/koji/pull-request/3884 Related: #3909 https://pagure.io/koji/issue/3909
This commit is contained in:
commit
268d07caf4
2 changed files with 6 additions and 6 deletions
|
|
@ -6473,7 +6473,7 @@ def anon_handle_watch_logs(goptions, session, args):
|
||||||
parser.add_option("--mine", action="store_true",
|
parser.add_option("--mine", action="store_true",
|
||||||
help="Watch logs for all your tasks, task_id arguments are forbidden in "
|
help="Watch logs for all your tasks, task_id arguments are forbidden in "
|
||||||
"this case.")
|
"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)
|
(options, args) = parser.parse_args(args)
|
||||||
|
|
||||||
if options.mine:
|
if options.mine:
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,11 @@ class TestWatchLogs(utils.CliTestCase):
|
||||||
(Specify the --help global option for a list of other help options)
|
(Specify the --help global option for a list of other help options)
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--log=LOG Watch only a specific log
|
--log=LOG Watch only a specific log
|
||||||
--mine Watch logs for all your tasks, task_id arguments are forbidden
|
--mine Watch logs for all your tasks, task_id arguments are forbidden
|
||||||
in this case.
|
in this case.
|
||||||
--follow Follow spawned child tasks
|
-f, --follow Follow spawned child tasks
|
||||||
""" % self.progname)
|
""" % self.progname)
|
||||||
|
|
||||||
def test_watch_task_mine_and_task_id(self):
|
def test_watch_task_mine_and_task_id(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue