Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 99f9793

Browse files
committed
Make clap use a different name for binary compared to the crate name
1 parent 4064621 commit 99f9793

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli/src/args_parser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::constants;
66

77
mod doc {
88
pub static NAME: &str = "Android Localization";
9+
pub static BINARY_NAME: &str = "android_localization";
910
pub static SHORT: &str = "To help with localization & common validations";
1011
pub static LONG: &str = r#"
1112
Helps in automating shipping off texts to be localized (by writing out CSVs
@@ -116,6 +117,7 @@ values folders => values, values-fr & values-es
116117

117118
pub fn build() -> App<'static, 'static> {
118119
App::new(doc::NAME)
120+
.bin_name(doc::BINARY_NAME)
119121
.about(doc::SHORT)
120122
.long_about(doc::LONG)
121123
.author(clap::crate_authors!())

0 commit comments

Comments
 (0)