Skip to content

Commit

Permalink
Added command line parameter -V or --version, fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Feb 17, 2025
1 parent d1611bc commit 2a57ac4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snx-rs-gui/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use clap::Parser;
use snxcore::model::params::TunnelParams;

#[derive(Parser, Clone)]
#[clap(about = "VPN client for Checkpoint security gateway", name = "snx-rs-gui")]
#[clap(about = "VPN client for Check Point security gateway", name = "snx-rs-gui", version = env!("CARGO_PKG_VERSION"))]
pub struct CmdlineParams {
#[clap(
long = "config-file",
Expand Down
2 changes: 1 addition & 1 deletion snx-rs/src/cmdline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tracing::level_filters::LevelFilter;
use snxcore::model::params::{CertType, OperationMode, TransportType, TunnelParams, TunnelType};

#[derive(Parser)]
#[clap(about = "VPN client for Checkpoint security gateway", name = "snx-rs")]
#[clap(about = "VPN client for Check Point security gateway", name = "snx-rs", version = env!("CARGO_PKG_VERSION"))]
pub struct CmdlineParams {
#[clap(long = "server-name", short = 's', help = "Server name")]
pub server_name: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion snxctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use snxcore::{
};

#[derive(Parser)]
#[clap(about = "VPN client for Checkpoint security gateway", name = "snxctl")]
#[clap(about = "VPN client for Check Point security gateway", name = "snxctl", version = env!("CARGO_PKG_VERSION"))]
pub struct CmdlineParams {
#[clap(
long = "config-file",
Expand Down

0 comments on commit 2a57ac4

Please sign in to comment.