diff options
author | Philippe Brochard <hocwp@free.fr> | 2010-01-23 23:41:23 +0100 |
---|---|---|
committer | Philippe Brochard <hocwp@free.fr> | 2010-01-23 23:41:23 +0100 |
commit | 551973d3e9526eb6e413ac37adbc8bac349eb369 (patch) | |
tree | 03cfb1d569994568a2fbb7fa24ea7fdd7de8893a /options.c | |
parent | 6ed7b563137fc002dae373e0f8a6362263373000 (diff) | |
download | xbindkeys-551973d3e9526eb6e413ac37adbc8bac349eb369.tar.gz |
options.c: A poll-rc flag has been added to poll the rc/guile configuration file for update. By default no poll is done on configuration files. Many thanks to Alexander Clouter.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -38,6 +38,7 @@ char rc_guile_file[512]; #endif int verbose = 0; +int poll_rc = 0; int have_to_show_binding = 0; int have_to_get_binding = 0; int have_to_start_as_daemon = 1; @@ -107,6 +108,10 @@ get_options (int argc, char **argv) strncpy (rc_guile_file, argv[++i], sizeof (rc_guile_file) - 1); } #endif + else if (strcmp (argv[i], "-p") == 0 || strcmp (argv[i], "--poll-rc") == 0) + { + poll_rc = 1; + } else if (strcmp (argv[i], "-s") == 0 || strcmp (argv[i], "--show") == 0) { have_to_show_binding = 1; @@ -222,6 +227,7 @@ show_help (void) #ifdef GUILE_FLAG fprintf (stderr, " -fg, --file-guile Use an alternative guile configuration file\n"); #endif + fprintf (stderr, " -p, --poll-rc Poll the rc/guile configs for updates\n"); fprintf (stderr, " -h, --help This help!\n"); fprintf (stderr, " -X, --display Set X display to use\n"); fprintf (stderr, |