This commit is contained in:
lelgenio 2022-04-12 21:58:19 -03:00
parent cbe3ac5bdf
commit e4d7cbee89

View file

@ -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);
}
}