Skip to content

Commit 20a9454

Browse files
committed
Rename --limit to --number for consistency
1 parent 4a23b44 commit 20a9454

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

issues_by_dev.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def main() -> None:
8585
"-m", "--markdown", action="store_true", help="Output in Markdown"
8686
)
8787
parser.add_argument("--links", action="store_true", help="Add links")
88-
parser.add_argument("--limit", type=int, help="Limit to this number of usernames")
88+
parser.add_argument(
89+
"-n", "--number", type=int, help="Limit to this number of usernames"
90+
)
8991
parser.add_argument("-j", "--json", action="store_true", help="output to JSON file")
9092
args = parser.parse_args()
9193

@@ -113,7 +115,7 @@ def main() -> None:
113115
authors = {}
114116
totals = {}
115117
print("Fetch issues")
116-
for author in track(usernames[: args.limit], description="Fetching issues..."):
118+
for author in track(usernames[: args.number], description="Fetching issues..."):
117119
authors[author] = check_issues(author)
118120
totals[author] = len(authors[author].issues) + len(authors[author].prs)
119121

0 commit comments

Comments
 (0)