Skip to content

Commit

Permalink
fix: remove single quotes from clap doc comments
Browse files Browse the repository at this point in the history
Apparently, clap_complete doesn't properly escape single quotes in doc
comments, leading to broken shell completions for zsh. To circumvent
this, I've removed the single quote in the one place where it shouldn't
have been in the first place ("it's" vs "its", contraction vs possessive
pronoun), and replaced "it's" with "it is" in the other place.

Reference to upstream issue: clap-rs/clap#1596
  • Loading branch information
jcgruenhage committed Feb 13, 2022
1 parent 20e2044 commit abca371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub fn run(
let output_file = fs::File::create(&output_path)?;

if !represents_several_files(&files) {
// It's possible the file is already partially compressed so we don't want to compress it again
// It is possible the file is already partially compressed so we don't want to compress it again
// `ouch compress file.tar.gz file.tar.gz.xz` should produce `file.tar.gz.xz` and not `file.tar.gz.tar.gz.xz`
let input_extensions = extension::extensions_from_path(&files[0]);

Expand Down

0 comments on commit abca371

Please sign in to comment.