Skip to content

Commit

Permalink
src/cli.rs:reorder help output
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RandyMcMillan committed Jun 27, 2024
1 parent dc6d4b0 commit 431bcd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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,7 +1,7 @@
[workspace]##exclude from gnostr-workspace
[package]
name = "gnostr-relay"
version = "0.0.2"
version = "0.0.3"
edition = "2021"
authors = ["Greg Heartsfield <[email protected]>", "gnostr <[email protected]>"]
description = "gnostr:git+nostr protocol relay"
Expand Down
10 changes: 5 additions & 5 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ pub struct CLIArgs {
#[arg(
short,
long,
help = "Use the <directory> as the location of the database",
help = "Use the <port> as the listening port <u16>",
required = false
)]
pub db: Option<String>,
pub port: Option<u16>,
#[arg(
short,
long,
help = "Use the <file name> as the location of the config file",
help = "Use the <directory> as the location of the database",
required = false
)]
pub port: Option<u16>,
pub db: Option<String>,
#[arg(
short,
long,
help = "Use the <port> as the listening port <u16>",
help = "Use the <file name> as the location of the config file",
required = false
)]
pub config: Option<String>,
Expand Down

0 comments on commit 431bcd4

Please sign in to comment.