Skip to content

Commit 4e219a7

Browse files
committed
Move misplaced arg definition
1 parent 829fe7e commit 4e219a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/portal-fetcher/openshift-docs-downloader.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,12 +1112,6 @@ async def main_async(args):
11121112
force=args.force,
11131113
skip_toc=args.skip_toc_verification
11141114
)
1115-
parser.add_argument(
1116-
"--max-retries",
1117-
type=check_positive_int,
1118-
default=3,
1119-
help="Maximum number of retry attempts for failed downloads (default: 3)"
1120-
)
11211115

11221116
return verification_passed and toc_verification_passed
11231117

@@ -1163,6 +1157,12 @@ def main():
11631157
action="store_true",
11641158
help="Skip TOC verification step"
11651159
)
1160+
parser.add_argument(
1161+
"--max-retries",
1162+
type=check_positive_int,
1163+
default=3,
1164+
help="Maximum number of retry attempts for failed downloads (default: 3)"
1165+
)
11661166
args = parser.parse_args()
11671167

11681168
# Run the async main function

0 commit comments

Comments
 (0)