Skip to content

Commit

Permalink
feat(命令行): 优化了 enable 指令界面
Browse files Browse the repository at this point in the history
enable帮助中没有完整的 USAGE 信息,在新版本中,添加了 USAGE 帮助,现在使用 enable --help 时会显示 USAGE
  • Loading branch information
bic-potato committed May 12, 2022
1 parent 4976589 commit d5e5bd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jvman get remote 11 // 下载 JDK 11 的最新构建版

### 加载本地jdk环境

`get local {Path}` 可以从路径中获取已安装的JDK的版本信息. 例如:
`get local {Path}` 可以从路径中获取已安装的JDK的版本信息`注:目前能够完美支持的只有Adopt OpenJDK系列`. 例如:

```cmd
"C:/Program Files/Eclipse Foundation/jdk-16.0.2.7-hotspot"
//启用位于该位置的JDK
//加载位于该位置的JDK
```

### 本地已安装的 JDK 版本的查看和使用
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async fn main() {
.subcommand(
clap::App::new("enable")
.about("enable one jdk version globally")
.args(&[clap::Arg::new("implementor").takes_value(true).short('i'), clap::Arg::new("version").takes_value(true).short('v')]),
.args(&[clap::Arg::new("implementor").takes_value(true).short('i'), clap::Arg::new("JDK version").takes_value(true).short('v')])
.override_usage("jdkman.exe -i [IMPLEMENTOR] -v [JDK_VERSION]"),
)
.subcommand(
clap::App::new("disable")
Expand Down

0 comments on commit d5e5bd4

Please sign in to comment.