You're right about checking `flag_directory`, however the check should actually before the watcher initialization, right after `flag.Parse`.