diff options
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r-- | src/fs/gnunet-publish.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index eb8a7ed19..fbf32c2a7 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -122,7 +122,7 @@ static int extract_only; | |||
122 | /** | 122 | /** |
123 | * Command-line option to disable adding creation time. | 123 | * Command-line option to disable adding creation time. |
124 | */ | 124 | */ |
125 | static int do_disable_creation_time; | 125 | static int enable_creation_time; |
126 | 126 | ||
127 | /** | 127 | /** |
128 | * Handle to the directory scanner (for recursive insertions). | 128 | * Handle to the directory scanner (for recursive insertions). |
@@ -419,7 +419,7 @@ publish_inspector (void *cls, | |||
419 | GNUNET_CONTAINER_meta_data_destroy (meta); | 419 | GNUNET_CONTAINER_meta_data_destroy (meta); |
420 | meta = NULL; | 420 | meta = NULL; |
421 | } | 421 | } |
422 | if (!do_disable_creation_time) | 422 | if (enable_creation_time) |
423 | GNUNET_CONTAINER_meta_data_add_publication_date (m); | 423 | GNUNET_CONTAINER_meta_data_add_publication_date (m); |
424 | if (extract_only) | 424 | if (extract_only) |
425 | { | 425 | { |
@@ -902,15 +902,15 @@ main (int argc, | |||
902 | "LEVEL", | 902 | "LEVEL", |
903 | gettext_noop ("set the desired LEVEL of sender-anonymity"), | 903 | gettext_noop ("set the desired LEVEL of sender-anonymity"), |
904 | &bo.anonymity_level), | 904 | &bo.anonymity_level), |
905 | GNUNET_GETOPT_option_flag ('d', | ||
906 | "disable-creation-time", | ||
907 | gettext_noop ("disable adding the creation time to the " | ||
908 | "metadata of the uploaded file"), | ||
909 | &do_disable_creation_time), | ||
910 | GNUNET_GETOPT_option_flag ('D', | 905 | GNUNET_GETOPT_option_flag ('D', |
911 | "disable-extractor", | 906 | "disable-extractor", |
912 | gettext_noop ("do not use libextractor to add keywords or metadata"), | 907 | gettext_noop ("do not use libextractor to add keywords or metadata"), |
913 | &disable_extractor), | 908 | &disable_extractor), |
909 | GNUNET_GETOPT_option_flag ('E', | ||
910 | "enable-creation-time", | ||
911 | gettext_noop ("enable adding the creation time to the " | ||
912 | "metadata of the uploaded file"), | ||
913 | &enable_creation_time), | ||
914 | GNUNET_GETOPT_option_flag ('e', | 914 | GNUNET_GETOPT_option_flag ('e', |
915 | "extract", | 915 | "extract", |
916 | gettext_noop ("print list of extracted keywords that would " | 916 | gettext_noop ("print list of extracted keywords that would " |