diff options
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/args.rs b/src/args.rs index 9689164a..7dd3853c 100644 --- a/src/args.rs +++ b/src/args.rs @@ -15,7 +15,7 @@ use std::{ pub struct CliArgs { pub theme: PathBuf, pub repo_path: RepoPath, - pub poll_watcher: bool, + pub notify_watcher: bool, } pub fn process_cmdline() -> Result<CliArgs> { @@ -54,13 +54,13 @@ pub fn process_cmdline() -> Result<CliArgs> { get_app_config_path()?.join("theme.ron") }; - let arg_poll: bool = - *arg_matches.get_one("poll").unwrap_or(&false); + let notify_watcher: bool = + *arg_matches.get_one("watcher").unwrap_or(&false); Ok(CliArgs { theme, - poll_watcher: arg_poll, repo_path, + notify_watcher, }) } @@ -96,9 +96,9 @@ fn app() -> ClapApp { .num_args(0), ) .arg( - Arg::new("poll") - .help("Poll folder for changes instead of using file system events. This can be useful if you run into issues with maximum # of file descriptors") - .long("polling") + Arg::new("watcher") + .help("Use notify-based file system watcher instead of tick-based update. This is more performant, but can cause issues on some platforms. See https://github.com/extrawurst/gitui/blob/master/FAQ.md#watcher for details.") + .long("watcher") .action(clap::ArgAction::SetTrue), ) .arg( |