You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--github_token GITHUB_TOKEN`: Personal GitHub token. For information on how to create one, visit: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token
75
+
76
+
-`--language LANGUAGE`: Programming language to find repositories for.
help="Personal GitHub token. For information on how to create one, visit: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token"
20
+
)
21
+
parser.add_argument(
22
+
"--language",
23
+
required=True,
24
+
type=str,
25
+
help="Programming language to find repositories for.",
26
+
)
27
+
parser.add_argument(
28
+
"--organisation",
29
+
"--org",
30
+
type=str,
31
+
default=RepositoryFinder.APACHE_ORGANISATION,
32
+
help="Organisation to find repositories for."
33
+
)
34
+
parser.add_argument(
35
+
"--pagination",
36
+
type=int,
37
+
default=100,
38
+
help="Pagination for retrieving repositories."
39
+
)
40
+
parser.add_argument(
41
+
"--maximum",
42
+
"--max",
43
+
type=int,
44
+
help="Maximum number of repositories to find."
45
+
)
46
+
47
+
args=parser.parse_args()
48
+
49
+
ifargs.pagination<1:
50
+
raiseargparse.ArgumentError(None, "--pagination cannot be lower than 1.")
51
+
ifargs.maximumisnotNoneandargs.maximum<1:
52
+
raiseargparse.ArgumentError(None, "--maximum cannot be lower than 1.")
0 commit comments