Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps(clap): migrate uses of structopt to clap in api #256

Merged
merged 4 commits into from
Jul 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use doc comments for help text
  • Loading branch information
Xavientois committed Jul 13, 2022
commit f6e0bf9115b621e81672e12a6e116278b2591d6a
37 changes: 14 additions & 23 deletions api/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,26 @@ use shuttle_common::Port;
#[derive(Parser)]
#[clap(name = "shuttle")]
pub struct Args {
#[clap(long, help = "Override the default root path for shuttle")]
/// Override the default root path for shuttle
#[clap(long)]
pub(crate) path: Option<PathBuf>,
#[clap(
long,
help = "Override the default port for the proxy",
default_value = "8000"
)]
/// Override the default port for the proxy
#[clap(long, default_value = "8000")]
pub(crate) proxy_port: Port,
#[clap(
long,
help = "Override the default port for the api",
default_value = "8001"
)]
/// Override the default port for the api
#[clap(long, default_value = "8001")]
pub(crate) api_port: Port,
#[clap(
long,
help = "Override the default bind address",
default_value = "127.0.0.1"
)]
/// Override the default bind address
#[clap(long, default_value = "127.0.0.1")]
pub(crate) bind_addr: IpAddr,
#[clap(long, help = "Fully qualified domain name deployed services are reachable at", parse(try_from_str = parse_fqdn))]
/// Fully qualified domain name deployed services are reachable at
#[clap(long, parse(try_from_str = parse_fqdn))]
pub(crate) proxy_fqdn: FQDN,
#[clap(long, help = "Address to connect to the provisioning service")]
/// Address to connect to the provisioning service
#[clap(long)]
pub(crate) provisioner_address: String,
#[clap(
long,
help = "Port provisioner is reachable at",
default_value = "5001"
)]
/// Port provisioner is reachable at
#[clap(long, default_value = "5001")]
pub(crate) provisioner_port: Port,
}

Expand Down