|
1 | 1 | import argparse |
2 | 2 |
|
| 3 | + |
3 | 4 | def parse(): |
4 | 5 | parser = argparse.ArgumentParser(description="🦑 SquidLeet CLI Tool") |
5 | 6 | parser.add_argument("--leetcode-session", type=str, help="LeetCode session token") |
6 | | - parser.add_argument("--practice-mode", type=str, choices=["custom", "random", "study-plan", "daily"], default="random", help="Practice mode") |
7 | | - parser.add_argument("--difficulties", type=str, help="Comma-separated difficulty levels (easy, medium, hard)", default="easy,medium,hard") |
8 | | - parser.add_argument("--problems", type=str, help="Comma-separated problem slugs (e.g., 'two-sum,fizz-buzz')") |
9 | | - parser.add_argument("--language", type=str, help="Programming language to use", default="python") |
10 | | - parser.add_argument("--time-limit", type=int, help="Time limit for practice in minutes", default=45) |
11 | | - parser.add_argument("--editor", type=str, help="Editor to use for files", default="default") |
12 | | - parser.add_argument("--open-in-browser", action="store_true", help="Open the problem in a browser") |
| 7 | + parser.add_argument( |
| 8 | + "--practice-mode", |
| 9 | + type=str, |
| 10 | + choices=["custom", "random", "study-plan", "daily"], |
| 11 | + default="random", |
| 12 | + help="Practice mode", |
| 13 | + ) |
| 14 | + parser.add_argument( |
| 15 | + "--difficulties", |
| 16 | + type=str, |
| 17 | + help="Comma-separated difficulty levels (easy, medium, hard)", |
| 18 | + default="easy,medium,hard", |
| 19 | + ) |
| 20 | + parser.add_argument( |
| 21 | + "--problems", |
| 22 | + type=str, |
| 23 | + help="Comma-separated problem slugs (e.g., 'two-sum,fizz-buzz')", |
| 24 | + ) |
| 25 | + parser.add_argument( |
| 26 | + "--language", type=str, help="Programming language to use", default="python" |
| 27 | + ) |
| 28 | + parser.add_argument( |
| 29 | + "--time-limit", type=int, help="Time limit for practice in minutes", default=45 |
| 30 | + ) |
| 31 | + parser.add_argument( |
| 32 | + "--editor", type=str, help="Editor to use for files", default="default" |
| 33 | + ) |
| 34 | + parser.add_argument( |
| 35 | + "--open-in-browser", action="store_true", help="Open the problem in a browser" |
| 36 | + ) |
13 | 37 |
|
14 | 38 | return vars(parser.parse_args()) |
0 commit comments