Sponsor uri in help

This commit is contained in:
veeso
2021-05-01 16:41:47 +02:00
parent 065ea59114
commit 41e89605f0
2 changed files with 32 additions and 36 deletions

View File

@@ -66,6 +66,7 @@ fn print_usage(opts: Options) {
);
print!("{}", opts.usage(&brief));
println!("\nPlease, report issues to <https://github.com/veeso/termscp>");
println!("Please, consider supporting the author <https://www.buymeacoffee.com/veeso>")
}
fn main() {
@@ -80,12 +81,7 @@ fn main() {
let mut ticks: Duration = Duration::from_millis(10);
//Process options
let mut opts = Options::new();
opts.optopt(
"P",
"password",
"Provide password from CLI (use at your own risk)",
"<password>",
);
opts.optopt("P", "password", "Provide password from CLI", "<password>");
opts.optopt("T", "ticks", "Set UI ticks; default 10ms", "<ms>");
opts.optflag("v", "version", "");
opts.optflag("h", "help", "Print this menu");