cli: clarify that download-logs operates on tasks

This commit is contained in:
Ken Dreyer 2021-07-16 16:02:49 -04:00 committed by Tomas Kopecek
parent d79b11eabc
commit 4878f50fa7
2 changed files with 6 additions and 2 deletions

View file

@ -7115,11 +7115,15 @@ def anon_handle_download_build(options, session, args):
def anon_handle_download_logs(options, session, args):
"[download] Download a logs for package"
"[download] Download logs for task"
FAIL_LOG = "task_failed.log"
usage = _("usage: %prog download-logs [options] <task_id> [<task_id> ...]")
usage += _("\n %prog download-logs [options] --nvr <n-v-r> [<n-v-r> ...]")
usage += "\n"
usage += "\n"
usage += _("Note this command only downloads task logs, not build logs.")
usage += "\n"
parser = OptionParser(usage=get_usage_str(usage))
parser.add_option("-r", "--recurse", action="store_true",
help=_("Process children of this task as well"))