mirror of
https://github.com/lelgenio/maildir-notify-daemon.git
synced 2025-01-17 21:46:26 -03:00
fix args
This commit is contained in:
parent
cbe3ac5bdf
commit
e4d7cbee89
|
@ -15,9 +15,9 @@ fn main() {
|
|||
Hotwatch::new_with_custom_delay(std::time::Duration::from_secs(0))
|
||||
.expect("hotwatch failed to initialize!");
|
||||
|
||||
for arg in std::env::args() {
|
||||
for arg in std::env::args().skip(1) {
|
||||
if let Err(e) = hotwatch.watch(&arg, handle_event) {
|
||||
eprintln!("Failed to watch arg {} with error: {}", &arg, e);
|
||||
eprintln!("Failed to watch arg '{}': {}", &arg, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue