mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Default ticks to 10ms
This commit is contained in:
@@ -62,11 +62,11 @@ fn main() {
|
||||
let mut username: Option<String> = None; // Default username
|
||||
let password: Option<String>; // Default password
|
||||
let mut protocol: FileTransferProtocol = FileTransferProtocol::Sftp; // Default protocol
|
||||
let mut ticks: Duration = Duration::from_micros(50);
|
||||
let mut ticks: Duration = Duration::from_millis(10);
|
||||
//Process options
|
||||
// FIXME: there is no way to provide password from CLI atm
|
||||
let mut opts = Options::new();
|
||||
opts.optopt("T", "ticks", "Set UI ticks; default 50µs", "<µs>");
|
||||
opts.optopt("T", "ticks", "Set UI ticks; default 10000µs", "<µs>");
|
||||
opts.optflag("v", "version", "");
|
||||
opts.optflag("h", "help", "Print this menu");
|
||||
let matches = match opts.parse(&args[1..]) {
|
||||
|
||||
Reference in New Issue
Block a user