Skip to content

Commit 199938c

Browse files
committed
fix short argument
1 parent 636f8e4 commit 199938c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ USAGE:
4949
trojan proxy --hostname <hostname>
5050

5151
FLAGS:
52-
--help Prints help information
52+
-h, --help Prints help information
5353
-V, --version Prints version information
5454

5555
OPTIONS:
56-
-h, --hostname <hostname> trojan server hostname
56+
-H, --hostname <hostname> trojan server hostname
5757

5858
hoping@HopingPC:~/workspace/trojan-rs$ trojan help server
5959
trojan-server

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum Mode {
5757

5858
#[derive(Clap)]
5959
pub struct ProxyArgs {
60-
#[clap(short, long, help = "trojan server hostname")]
60+
#[clap(short = "H", long, help = "trojan server hostname")]
6161
pub hostname: String,
6262
}
6363

0 commit comments

Comments
 (0)