diff --git a/osc/commandline.py b/osc/commandline.py index cdcea14..5dec514 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1801,6 +1801,8 @@ @cmdln.alias('bl') + @cmdln.option('-s', '--start', metavar='START', + help='get log starting from the offset') def do_buildlog(self, subcmd, opts, platform, arch): """${cmd_name}: Shows the build log of a package @@ -1820,7 +1822,11 @@ project = store_read_project(wd) apiurl = store_read_apiurl(wd) - print_buildlog(apiurl, project, package, platform, arch) + offset=0 + if opts.start: + offset = int(opts.start) + + print_buildlog(apiurl, project, package, platform, arch, offset) @cmdln.alias('rbl')