Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ダウンローダのCLIオプションでclap::Arg::value_nameを設定 #604

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Sep 10, 2023

内容

clap::Arg::value_name

cargo run -p download -- -h
 Usage: download [OPTIONS]

 Options:
       --min
           ダウンロードするライブラリを最小限にするように指定
-  -o, --output <OUTPUT>
+  -o, --output <DIRECTORY>
           出力先の指定 [default: ./voicevox_core]
-  -v, --version <VERSION>
+  -v, --version <GIT_TAG_OR_LATEST>
           ダウンロードするvoicevox_coreのバージョンの指定 [default: latest]
-      --additional-libraries-version <ADDITIONAL_LIBRARIES_VERSION>
+      --additional-libraries-version <GIT_TAG_OR_LATEST>
           追加でダウンロードするライブラリのバージョン [default: latest]
       --device <DEVICE>
           ダウンロードするデバイスを指定する(cudaはlinuxのみ) [default: cpu] [possible values: cpu, cuda, directml]
       --cpu-arch <CPU_ARCH>
           ダウンロードするcpuのアーキテクチャを指定する [default: x64] [possible values: x86, x64, arm64]
       --os <OS>
           ダウンロードする対象のOSを指定する [default: linux] [possible values: windows, linux, osx]

関連 Issue

その他

@qryxip qryxip changed the title ダウンローダにclap::Arg::value_nameを設定 ダウンローダのCLIオプションでclap::Arg::value_nameを設定 Sep 10, 2023
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

crates/download/src/main.rs Show resolved Hide resolved
crates/download/src/main.rs Show resolved Hide resolved
@Hiroshiba Hiroshiba merged commit 09c8656 into VOICEVOX:main Sep 14, 2023
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants