[tracker-miners/sam/index-file-sync: 18/18] cli: Add --file argument for backwards compatibility
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/index-file-sync: 18/18] cli: Add --file argument for backwards compatibility
- Date: Sat, 21 Mar 2020 23:47:47 +0000 (UTC)
commit e981e193d75b55f233764688758461e335251cc9
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Mar 20 22:25:22 2020 +0100
cli: Add --file argument for backwards compatibility
It's easy to keep this around, and nice for old documentation
to keep working where possible.
src/tracker/tracker-index.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/tracker/tracker-index.c b/src/tracker/tracker-index.c
index 38cf8c7c6..c9617bc63 100644
--- a/src/tracker/tracker-index.c
+++ b/src/tracker/tracker-index.c
@@ -37,10 +37,14 @@
#include "tracker-dbus.h"
#include "tracker-miner-manager.h"
+static gboolean file_arg;
static gboolean monitor_mode;
static gchar **filenames;
static GOptionEntry entries[] = {
+ { "file", 'f', 0, G_OPTION_ARG_NONE, &file_arg,
+ N_("Does nothing, provided for compatibility with Tracker 2.0"),
+ NULL },
{ "monitor", 'm', 0, G_OPTION_ARG_NONE, &monitor_mode,
N_("Trigger indexing and wait for CTRL+C, removing the data again on exit."),
NULL },
@@ -249,5 +253,9 @@ main (int argc, const char **argv)
return EXIT_FAILURE;
}
+ if (file_arg) {
+ g_message ("The --file arg is no longer needed.");
+ }
+
return index_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]