Skip to content

Commit

Permalink
Update dependencies & support Arabic
Browse files Browse the repository at this point in the history
  • Loading branch information
tats-u committed Sep 22, 2020
1 parent 06571de commit 78836ba
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 65 deletions.
77 changes: 21 additions & 56 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zifu"
version = "0.2.0"
version = "0.2.1"
authors = ["Tatsunori Uchino <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ If you prefer UTF-8 than the encoding of your language, add `-u` option. This i
- トルコ語など / Turkish etc. (CP857)
- ヘブライ語 / Hebrew (CP862)
- ロシア語など / Russian etc. (CP866)

アラビア文字を利用する言語 (CP720) は未対応です。 / Languages using Arabic letters (CP720) has not yet been supported.
- アラビア語 / Arabic (CP720)

非対応の言語では、CP437が使用されます。 / CP437 will be used in unsupported languages.

Expand Down
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ fn main() -> anyhow::Result<()> {
.version(crate_version!())
.about(crate_description!())
.arg(
Arg::with_name("input")
Arg::new("input")
.about("Path to the ZIP file where you want to change the encoding of the file name to UTF-8")
.required(true)
)
.arg(
Arg::with_name("output")
Arg::new("output")
.about("Path to output")
)
.arg(
Arg::with_name("check")
Arg::new("check")
.long("check")
.short('c')
.about("Finds out if its file names are encoded in UTF-8.")
)
.arg(
Arg::with_name("list")
Arg::new("list")
.short('l')
.long("list")
.about("Displays the list of file names in the ZIP archive.")
)
.arg(
Arg::with_name("encoding")
Arg::new("encoding")
.long("encoding")
.short('e')
.value_name("ENCODING")
.about("Specifies the encoding of file names in the ZIP archive.")
)
.arg(
Arg::with_name("utf-8")
Arg::new("utf-8")
.long("utf8")
.short('u')
.about("Treats the encoding of the ZIP archive as UTF-8 first. (Default: try legacy encoding first)")
Expand Down

0 comments on commit 78836ba

Please sign in to comment.