Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b69b093

Browse files
committed
removed name check at bottom of file
1 parent c445c31 commit b69b093

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

‎Github Size-Contributor-List/script.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ def main(args):
1717
text.write(response_text + "\n" + "List of contributors is as follows: " + str(list_of_contributors))
1818

1919

20-
if __name__ == "__main__":
21-
parser = argparse.ArgumentParser("This script displays the size and list of contributors for a specific repo")
22-
parser.add_argument("-o", help="The name of the user", type=str, required=True)
23-
parser.add_argument("-n", help="The name of the repo", type=str, required=True)
20+
parser = argparse.ArgumentParser("This script displays the size and list of contributors for a specific repo")
21+
parser.add_argument("-o", help="The name of the user", type=str, required=True)
22+
parser.add_argument("-n", help="The name of the repo", type=str, required=True)
2423

25-
args = parser.parse_args()
24+
args = parser.parse_args()
2625

27-
main(args)
28-
26+
main(args)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /