Skip to content

Commit 431bcd4

Browse files
committed
src/cli.rs:reorder help output
v0.0.3 gnostr: git+nostr rust relay Usage: gnostr-relay [OPTIONS] Options: -p, --port <PORT> Use the <port> as the listening port <u16> -d, --db <DB> Use the <directory> as the location of the database -c, --config <CONFIG> Use the <file name> as the location of the config file -h, --help Print help -V, --version Print version
1 parent dc6d4b0 commit 431bcd4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]##exclude from gnostr-workspace
22
[package]
33
name = "gnostr-relay"
4-
version = "0.0.2"
4+
version = "0.0.3"
55
edition = "2021"
66
authors = ["Greg Heartsfield <[email protected]>", "gnostr <[email protected]>"]
77
description = "gnostr:git+nostr protocol relay"

src/cli.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ pub struct CLIArgs {
66
#[arg(
77
short,
88
long,
9-
help = "Use the <directory> as the location of the database",
9+
help = "Use the <port> as the listening port <u16>",
1010
required = false
1111
)]
12-
pub db: Option<String>,
12+
pub port: Option<u16>,
1313
#[arg(
1414
short,
1515
long,
16-
help = "Use the <file name> as the location of the config file",
16+
help = "Use the <directory> as the location of the database",
1717
required = false
1818
)]
19-
pub port: Option<u16>,
19+
pub db: Option<String>,
2020
#[arg(
2121
short,
2222
long,
23-
help = "Use the <port> as the listening port <u16>",
23+
help = "Use the <file name> as the location of the config file",
2424
required = false
2525
)]
2626
pub config: Option<String>,

0 commit comments

Comments
 (0)