Skip to content

Commit

Permalink
Merge branch 'add-version-to-cli'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Feb 27, 2023
2 parents fe8b1bb + d513ff8 commit ab6b617
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/bin/tcp2udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use std::num::NonZeroU8;
use udp_over_tcp::{tcp2udp, NeverOkResult};

#[derive(Debug, Parser)]
#[command(name = "tcp2udp", about = "Listen for incoming TCP and forward to UDP")]
#[command(
name = "tcp2udp",
about = "Listen for incoming TCP and forward to UDP",
version
)]
pub struct Options {
/// Sets the number of worker threads to use.
/// The default value is the number of cores available to the system.
Expand Down
6 changes: 5 additions & 1 deletion src/bin/udp2tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use std::net::SocketAddr;
use udp_over_tcp::udp2tcp;

#[derive(Debug, Parser)]
#[command(name = "udp2tcp", about = "Listen for incoming UDP and forward to TCP")]
#[command(
name = "udp2tcp",
about = "Listen for incoming UDP and forward to TCP",
version
)]
pub struct Options {
/// The IP and UDP port to bind to and accept incoming connections on.
#[arg(long = "udp-listen")]
Expand Down

0 comments on commit ab6b617

Please sign in to comment.