diff options
| author | molodaya_mama <aakupov062@gmail.com> | 2026-11-24 03:00:45 +0500 |
|---|---|---|
| committer | molodaya_mama <aakupov062@gmail.com> | 2026-11-24 03:00:45 +0500 |
| commit | c83031fa51ee4b3f0a0e99e8bc63da6bb49a93b1 (patch) | |
| tree | b727ef3a364e828e93e035486d513c81481bef91 /tools/progress_dashboard.py | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
progress_dashboard: require --github when using --login
Diffstat (limited to 'tools/progress_dashboard.py')
| -rw-r--r-- | tools/progress_dashboard.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/progress_dashboard.py b/tools/progress_dashboard.py index 16e488fd6..19602b370 100644 --- a/tools/progress_dashboard.py +++ b/tools/progress_dashboard.py | |||
| @@ -1006,6 +1006,8 @@ def main(argv=None): | |||
| 1006 | ap.add_argument("--repo", default=DEFAULT_REPO, help=f"GitHub repository (default {DEFAULT_REPO})") | 1006 | ap.add_argument("--repo", default=DEFAULT_REPO, help=f"GitHub repository (default {DEFAULT_REPO})") |
| 1007 | ap.add_argument("--login", help="with --github, show this account's claims and pull requests") | 1007 | ap.add_argument("--login", help="with --github, show this account's claims and pull requests") |
| 1008 | args = ap.parse_args(argv) | 1008 | args = ap.parse_args(argv) |
| 1009 | if args.login is not None and not args.github: | ||
| 1010 | ap.error("--login requires --github") | ||
| 1009 | if args.jobs < 1: | 1011 | if args.jobs < 1: |
| 1010 | ap.error("--jobs must be a positive integer") | 1012 | ap.error("--jobs must be a positive integer") |
| 1011 | if args.test_timeout < 1: | 1013 | if args.test_timeout < 1: |