Skip to content

Commit

Permalink
client: change rustdoc double-quotes to single for zsh completions.
Browse files Browse the repository at this point in the history
clap (used by StructOpt) doesn't escape double-quotes inside the
rustdocs that is uses to generate completion helptext. Rather than wait
on them, it's simpler to just avoid double-quotes for now at least.

Closes #156
  • Loading branch information
mcginty committed Sep 21, 2021
1 parent cac46db commit bfa5d5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ enum Command {
/// Uninstall an innernet network.
Uninstall { interface: Interface },

/// Bring down the interface (equivalent to "wg-quick down <interface>")
/// Bring down the interface (equivalent to 'wg-quick down <interface>')
Down { interface: Interface },

/// Add a new peer.
///
/// By default, you'll be prompted interactively to create a peer, but you can
/// also specify all the options in the command, eg:
///
/// --name "person" --cidr "humans" --admin false --auto-ip --save-config "person.toml" --yes
/// --name 'person' --cidr 'humans' --admin false --auto-ip --save-config 'person.toml' --yes
AddPeer {
interface: Interface,

Expand All @@ -154,7 +154,7 @@ enum Command {
/// By default, you'll be prompted interactively to select a peer, but you can
/// also specify all the options in the command, eg:
///
/// --name "person" --new-name "human"
/// --name 'person' --new-name 'human'
RenamePeer {
interface: Interface,

Expand Down

0 comments on commit bfa5d5e

Please sign in to comment.