added structopt informations for RemoteOpts

pull/17/head
ZSchoen 3 years ago
parent 3328e485ad
commit 9955b75ae8

@ -12,16 +12,20 @@ const PROGRESS_FLAG: &str = "--info=progress2";
#[derive(StructOpt, Debug)] #[derive(StructOpt, Debug)]
pub struct RemoteOpts { pub struct RemoteOpts {
#[structopt(short = "r", long = "remote", help = "Remote ssh build server")] /// The name of the remote specified in the config
#[structopt(short = "r", long = "remote")]
name: Option<String>, name: Option<String>,
#[structopt(short, long, help = "")] /// Remote ssh build server with user or the name of the ssh entry
#[structopt(short = "H", long = "remote-host")]
host: Option<String>, host: Option<String>,
#[structopt(short, long, help = "")] /// The ssh port to communicate with the build server
#[structopt(short = "p", long = "remote-ssh-port")]
ssh_port: Option<u16>, ssh_port: Option<u16>,
#[structopt(short, long, help = "")] /// The directory where cargo builds the project
#[structopt(short, long = "remote-temp-dir")]
temp_dir: Option<String>, temp_dir: Option<String>,
} }

Loading…
Cancel
Save