Skip to content

Commit 256730b

Browse files
committedMar 3, 2024
docs:add -l description
1 parent 55dd929 commit 256730b

File tree

5 files changed

+1203
-12
lines changed

5 files changed

+1203
-12
lines changed
 

‎README.md

+27-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,31 @@ To be developed...
307307

308308
#### 4. Common Parameters
309309

310-
##### [1]. Specify Directory - [`-d`/`-directory`]
310+
##### [1]. Get or specify the current programming language - [-l/-language [language]]
311+
312+
You can use -l without arguments to get the current programming language setting, or you can specify the language parameter to set the language environment of the current CLI to the specified language.
313+
314+
```shell
315+
# This parameter behaves consistently in lc/lk/lf
316+
lc -l
317+
lk -l java
318+
```
319+
320+
Usage example:
321+
322+
```shell
323+
# Get language environment
324+
➜ leetcode-practice git:(dev) ✗ lc -l
325+
Current CLI language environment is: javascript
326+
# Change language environment
327+
➜ leetcode-practice git:(dev) ✗ lc -l java
328+
? Please confirm the language environment you want to set for the CLI (Press Enter to confirm if the option matches) java
329+
Setting language environment to: java
330+
```
331+
332+
Note: Unable to execute test cases in this environment.
333+
334+
##### [2]. Specify Directory - [`-d`/`-directory`]
311335
312336
The `create` and `check` commands can also use the `-d` parameter to specify a relative address based on the current working directory as the specified directory.
313337
When specifying a directory, the operation will be performed in that directory.
@@ -329,7 +353,7 @@ Problem file address is: /home/wh131462/workspace/leetcode-practice/src/src/2867
329353
330354
> Note: If the specified directory does not exist, an empty directory will be created.
331355
332-
##### [2]. Check Version [`-V`/`--version`]
356+
##### [3]. Check Version [`-V`/`--version`]
333357
334358
```shell
335359
# Check lc version
@@ -349,7 +373,7 @@ workspace/leetcode-practice [dev●] » lc -V
349373
0.0.0
350374
```
351375
352-
##### [3]. Update Check [`-u`/`--update`]
376+
##### [4]. Update Check [`-u`/`--update`]
353377
354378
Using the `-u` or `--update` parameter, you can check whether the current version is the latest version. If the current version is not the latest version, you will be prompted whether to update.
355379
```shell

‎docs/README_CN.md

+27-3
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,31 @@ workspace/leetcode-practice [dev●] » lk -e
304304

305305
#### 4.通用参数
306306

307-
##### [1]. 指定目录 - [`-d`/`-directory`]
307+
##### [1]. 获取或指定当前编程语言 - [`-l`/`-language` [language]]
308+
309+
可以通过`-l`不带参数来获取当前的编程语言设定,也可以通过指定语言参数将当前cli的语言环境设定为指定的语言。
310+
```shell
311+
# 此参数在 lc/lk/lf 中的表现一致
312+
lc -l
313+
lk -l java
314+
```
315+
316+
使用示例:
317+
318+
```shell
319+
# 获取语言环境
320+
➜ leetcode-practice git:(dev) ✗ lc -l
321+
当前CLI语言环境为:javascript
322+
# 更改语言环境
323+
➜ leetcode-practice git:(dev) ✗ lc -l java
324+
? 请确认你要设置CLI的语言环境(如果选项匹配成功,那么按下回车确认即可) java
325+
设置语言环境为: java
326+
327+
```
328+
329+
> 注意: 在这个环境下无法执行检测测试用例。
330+
331+
##### [2]. 指定目录 - [`-d`/`-directory`]
308332

309333
`创建``检查`指令还可以使用参数`-d`来指定基于当前工作目录的相对地址作为指定目录。
310334
当指定目录后会在指定目录中进行创建或者检查操作。
@@ -326,7 +350,7 @@ MODE: today
326350

327351
> 注意: 如果指定的目录不存在,会自动生成一个空目录进行创建。
328352
329-
##### [2]. 检查版本号 [`-V`/`--version`]
353+
##### [3]. 检查版本号 [`-V`/`--version`]
330354

331355
```shell
332356
# 查看lc版本
@@ -344,7 +368,7 @@ workspace/leetcode-practice [dev●] » lc -V
344368
0.0.0
345369
```
346370

347-
##### [3]. 更新检测 [`-u`/`--update`]
371+
##### [4]. 更新检测 [`-u`/`--update`]
348372
使用`-u`或者`--update`参数可以检测当前版本是否为最新版本,如果当前版本不是最新版本,会提示用户是否进行更新.
349373
```shell
350374
lk -u

‎docs/README_JP.md

+27-3
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,31 @@ workspace/leetcode-practice [dev●] » lk -e
314314

315315
#### 4.一般的なオプション
316316

317-
##### [1]. ディレクトリを指定する - [`-d`/`-directory`]
317+
##### [1]. 現在のプログラミング言語の取得または指定 - [`-l`/`-language` [language]]
318+
319+
`-l`を引数なしで使用すると、現在のプログラミング言語の設定を取得できます。また、言語のパラメータを指定することで、現在のCLIの言語環境を指定の言語に設定することもできます。
320+
```shell
321+
# このパラメータは lc/lk/lf で同様の動作をします
322+
lc -l
323+
lk -l java
324+
```
325+
326+
使用例:
327+
328+
```shell
329+
# 言語環境の取得
330+
➜ leetcode-practice git:(dev) ✗ lc -l
331+
現在のCLIの言語環境は:javascript
332+
# 言語環境の変更
333+
➜ leetcode-practice git:(dev) ✗ lc -l java
334+
? CLIの言語環境を設定してください (オプションが一致した場合、Enterキーを押して確認してください) java
335+
言語環境が設定されました: java
336+
337+
```
338+
339+
> 注意: この環境ではテストケースの実行はできません。
340+
341+
##### [2]. ディレクトリを指定する - [`-d`/`-directory`]
318342

319343
`-d`オプ
320344

@@ -340,7 +364,7 @@ MODE: today
340364

341365
> 注意: 指定したディレクトリが存在しない場合、空のディレクトリが作成されます。
342366
343-
##### [2]. バージョンを確認する [`-V`/`--version`]
367+
##### [3]. バージョンを確認する [`-V`/`--version`]
344368

345369
```shell
346370
# lcのバージョンを確認する
@@ -358,7 +382,7 @@ workspace/leetcode-practice [dev●] » lc -V
358382
0.0.0
359383
```
360384

361-
##### [3]. 更新をチェックする [`-u`/`--update`]
385+
##### [4]. 更新をチェックする [`-u`/`--update`]
362386

363387
`-u`または`--update`オプションを使用すると、現在のバージョンが最新バージョンでないかどうかをチェックできます。現在のバージョンが最新バージョンでない場合、更新を行うかどうかをユーザーに確認します。
364388

‎docs/README_KR.md

+27-3
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,31 @@ workspace/leetcode-practice [dev●] » lk -e
311311

312312
#### 4. 일반 매개변수
313313

314-
##### [1]. 디렉터리 지정 - [`-d`/`-directory`]
314+
##### [1]. 현재 프로그래밍 언어 가져오거나 지정하기 - [`-l`/`-language` [언어]]
315+
316+
`-l`을 인수 없이 사용하여 현재 프로그래밍 언어 설정을 가져올 수 있습니다. 또한 언어 매개변수를 지정하여 현재 CLI의 언어 환경을 지정된 언어로 설정할 수도 있습니다.
317+
```shell
318+
# lc/lk/lf에서 이 매개변수는 동일하게 동작합니다
319+
lc -l
320+
lk -l java
321+
```
322+
323+
사용 예시:
324+
325+
```shell
326+
# 언어 환경 가져오기
327+
➜ leetcode-practice git:(dev) ✗ lc -l
328+
현재 CLI 언어 환경은:javascript
329+
# 언어 환경 변경
330+
➜ leetcode-practice git:(dev) ✗ lc -l java
331+
? CLI의 언어 환경을 설정하시겠습니까 (옵션과 일치하는 경우 Enter 키를 눌러 확인하십시오) java
332+
언어 환경이 설정되었습니다: java
333+
334+
```
335+
336+
> 참고: 이 환경에서는 테스트 케이스를 실행할 수 없습니다.
337+
338+
##### [2]. 디렉터리 지정 - [`-d`/`-directory`]
315339

316340
`생성``검사` 명령은 현재 작업 디렉터리를 기준으로 상대 주소를 지정하는 `-d` 매개변수를 사용할 수 있습니다. 지정된 디렉터리에서 생성 또는 검사 작업이 수행됩니다.
317341
```shell
@@ -332,7 +356,7 @@ MODE: today
332356

333357
> 참고: 지정된 디렉터리가 존재하지 않으면 빈 디렉터리가 자동으로 생성됩니다.
334358
335-
##### [2]. 버전 확인 [`-V`/`--version`]
359+
##### [3]. 버전 확인 [`-V`/`--version`]
336360

337361
```shell
338362
# lc 버전 확인
@@ -350,7 +374,7 @@ workspace/leetcode-practice [dev●] » lc -V
350374
0.0.0
351375
```
352376

353-
##### [3]. 업데이트 확인 [`-u`/`--update`]
377+
##### [4]. 업데이트 확인 [`-u`/`--update`]
354378
`-u` 또는 `--update` 매개변수를 사용하여 현재 버전이 최신 버전인지 확인할 수 있습니다. 현재 버전이 최신 버전이 아닌 경우 사용자에게 업데이트를 진행할지 여부를 알립니다.
355379
```shell
356380
lk -u

0 commit comments

Comments
 (0)
Please sign in to comment.