14
14
15
15
Display help message.
16
16
17
- * ` lc help <command>` to see help on sub command.
18
- * ` lc <command> --help` also works.
17
+ * ` leetcode help <command>` to see help on sub command.
18
+ * ` leetcode <command> --help` also works.
19
19
20
20
* Examples*
21
21
22
- $ lc help
22
+ $ leetcode help
23
23
24
24
list [keyword] list problems
25
25
show <keyword> show problem by name or index
@@ -30,9 +30,9 @@ Display help message.
30
30
31
31
Show help on sub command:
32
32
33
- $ lc help list
33
+ $ leetcode help list
34
34
35
- lc list [keyword]
35
+ leetcode list [keyword]
36
36
37
37
Options:
38
38
--help Show help [boolean]
@@ -54,13 +54,13 @@ Navigate all the problems. The heading `✔` means you have AC-ed the problem, `
54
54
* `l` = locked, `L` = not locked.
55
55
* `s` = starred, `S` = unstarred.
56
56
* ` -s ` to show statistic counters.
57
- * ` lc list <keyword>` to search by keyword matching.
57
+ * ` leetcode list <keyword>` to search by keyword matching.
58
58
59
59
* Examples*
60
60
61
61
Show statistcis:
62
62
63
- $ lc list -s
63
+ $ leetcode list -s
64
64
[385] Mini Parser Medium (26.5%)
65
65
✘ [384] Shuffle an Array Medium (45.7%)
66
66
✔ [383] Ransom Note Easy (44.5%)
@@ -78,7 +78,7 @@ Show statistcis:
78
78
79
79
Use keyword search and query:
80
80
81
- $ lc list -q Dml array
81
+ $ leetcode list -q Dml array
82
82
83
83
🔒 [360] Sort Transformed Array Medium (41.0%)
84
84
🔒 [325] Maximum Size Subarray Sum Equals k Medium (40.9%)
@@ -100,12 +100,12 @@ Display problem details. With `-g`+`-l`, the code template could be auto generat
100
100
* ruby
101
101
* swift
102
102
* Instead of index number, you can use name to select a problem.
103
- * `lc show "Two Sum"`
104
- * `lc show two-sum`
103
+ * `leetcode show "Two Sum"`
104
+ * `leetcode show two-sum`
105
105
106
106
* Examples*
107
107
108
- $ lc show 1 -g -l cpp
108
+ $ leetcode show 1 -g -l cpp
109
109
110
110
[1] Two Sum (File: two-sum.cpp)
111
111
@@ -136,15 +136,15 @@ Mark your favorite problems. The starred problem will be shown with a `★`.
136
136
137
137
* ` -d ` to unstar.
138
138
* Instead of index number, you can use name to star a problem.
139
- * `lc star "Two Sum"`
140
- * `lc star two-sum`
139
+ * `leetcode star "Two Sum"`
140
+ * `leetcode star two-sum`
141
141
142
142
* Example*
143
143
144
- $ lc star 1
144
+ $ leetcode star 1
145
145
[1] Two Sum ★
146
146
147
- $ lc star 1 -d
147
+ $ leetcode star 1 -d
148
148
[1] Two Sum ☆
149
149
150
150
## submission
@@ -161,13 +161,13 @@ Available options:
161
161
* ` -a ` to work against all problems.
162
162
* ` -x ` to add problem details in the output file.
163
163
* Or work against specfic problem only.
164
- * `lc submission 1`
165
- * `lc submission two-sum`
164
+ * `leetcode submission 1`
165
+ * `leetcode submission two-sum`
166
166
167
167
168
168
* Examples*
169
169
170
- $ lc submission -a -o tmp
170
+ $ leetcode submission -a -o tmp
171
171
172
172
[303] Range Sum Query - Immutable tmp/range-sum-query-immutable.52178990.ac.cpp
173
173
[319] Bulb Switcher tmp/bulb-switcher.52257927.ac.cpp
@@ -181,7 +181,7 @@ Submit code to leetcode.com.
181
181
182
182
* Examples*
183
183
184
- $ lc submit ./two-sum.cpp
184
+ $ leetcode submit ./two-sum.cpp
185
185
186
186
✔ Accepted
187
187
✔ 16/16 cases passed (12 ms)
@@ -195,7 +195,7 @@ Customize your testcase and run it against leetcode. If no testcase provided, a
195
195
196
196
* Examples*
197
197
198
- $ lc test ./two-sum.cpp -t '[3,2,4]\n7'
198
+ $ leetcode test ./two-sum.cpp -t '[3,2,4]\n7'
199
199
200
200
Input data:
201
201
[3,2,4]
@@ -218,20 +218,20 @@ Login with your leetcode account (username or email).
218
218
* ` -l ` to login
219
219
* ` -L ` to logout.
220
220
* ` -s ` to show user statistics.
221
- * ` lc user` to show current account.
221
+ * ` leetcode user` to show current account.
222
222
223
223
* Examples*
224
224
225
225
Login:
226
226
227
- $ lc user -l
227
+ $ leetcode user -l
228
228
login: <account>
229
229
pass:
230
230
Successfully login as <account>
231
231
232
232
Show user statistics:
233
233
234
- $ lc user -s
234
+ $ leetcode user -s
235
235
You are now login as <account>
236
236
237
237
Easy 72/95 (75.79%) [+++++++++++++++++++++++.......]
@@ -248,12 +248,12 @@ Display version information.
248
248
249
249
Short:
250
250
251
- $ lc version
251
+ $ leetcode version
252
252
0.6.0
253
253
254
254
Verbose:
255
255
256
- $ lc version -v
256
+ $ leetcode version -v
257
257
_ _ _
258
258
| | | | | |
259
259
| | ___ ___| |_ ___ ___ __| | ___
0 commit comments