OzoneAsai commited on
Commit
46c3368
1 Parent(s): 5959386

Update cloneTheGit.py

Browse files
Files changed (1) hide show
  1. cloneTheGit.py +9 -3
cloneTheGit.py CHANGED
@@ -1,8 +1,14 @@
1
  import os
2
  import subprocess
3
- print(os.getrnv("ghKey"))
4
- # 環境変数からGitHubのAPIキー(PAT)を取得
5
- github_token = os.getenv('ghKey') or os.getenv('PAT')
 
 
 
 
 
 
6
 
7
  # GitHubリポジトリのURL
8
  repo_url = "https://github.com/OzoneAsai/flashcards.git"
 
1
  import os
2
  import subprocess
3
+ import argparse
4
+
5
+ # パーサーの作成
6
+ parser = argparse.ArgumentParser(description="This is a sample script.")
7
+
8
+ # 引数の定義
9
+
10
+ parser.add_argument("--key", type=int, help="Your PAT", required=True)
11
+
12
 
13
  # GitHubリポジトリのURL
14
  repo_url = "https://github.com/OzoneAsai/flashcards.git"