diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-05 11:57:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-05 11:57:30 +0000 |
commit | d5ed02822ed1545dc05292b9ed3907defb6d782e (patch) | |
tree | 4f35bef9b874325e2c96b39e17d20a498ac37b54 /src/fs/gnunet-search.c | |
parent | e8cb6d674411db8633c8706afe7b62e53d8419b6 (diff) | |
download | gnunet-d5ed02822ed1545dc05292b9ed3907defb6d782e.tar.gz gnunet-d5ed02822ed1545dc05292b9ed3907defb6d782e.zip |
verb
Diffstat (limited to 'src/fs/gnunet-search.c')
-rw-r--r-- | src/fs/gnunet-search.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/gnunet-search.c b/src/fs/gnunet-search.c index 33c81c9d7..e8d660375 100644 --- a/src/fs/gnunet-search.c +++ b/src/fs/gnunet-search.c | |||
@@ -118,6 +118,7 @@ static void * | |||
118 | progress_cb (void *cls, | 118 | progress_cb (void *cls, |
119 | const struct GNUNET_FS_ProgressInfo *info) | 119 | const struct GNUNET_FS_ProgressInfo *info) |
120 | { | 120 | { |
121 | static unsigned int cnt; | ||
121 | char *uri; | 122 | char *uri; |
122 | char *dotdot; | 123 | char *dotdot; |
123 | char *filename; | 124 | char *filename; |
@@ -133,7 +134,7 @@ progress_cb (void *cls, | |||
133 | info->value.search.specifics.result.meta, | 134 | info->value.search.specifics.result.meta, |
134 | NULL); | 135 | NULL); |
135 | uri = GNUNET_FS_uri_to_string (info->value.search.specifics.result.uri); | 136 | uri = GNUNET_FS_uri_to_string (info->value.search.specifics.result.uri); |
136 | printf ("%s:\n", uri); | 137 | printf ("#%u:\n", cnt++); |
137 | filename = | 138 | filename = |
138 | GNUNET_CONTAINER_meta_data_get_by_type (info->value.search.specifics.result.meta, | 139 | GNUNET_CONTAINER_meta_data_get_by_type (info->value.search.specifics.result.meta, |
139 | EXTRACTOR_METATYPE_FILENAME); | 140 | EXTRACTOR_METATYPE_FILENAME); |
@@ -278,7 +279,10 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = { | |||
278 | {'o', "output", "PREFIX", | 279 | {'o', "output", "PREFIX", |
279 | gettext_noop | 280 | gettext_noop |
280 | ("write search results to file starting with PREFIX"), | 281 | ("write search results to file starting with PREFIX"), |
281 | 1, &GNUNET_GETOPT_set_string, &output_filename}, | 282 | 1, &GNUNET_GETOPT_set_string, &output_filename}, |
283 | {'V', "verbose", NULL, | ||
284 | gettext_noop ("be verbose (print progress information)"), | ||
285 | 0, &GNUNET_GETOPT_set_one, &verbose}, | ||
282 | GNUNET_GETOPT_OPTION_END | 286 | GNUNET_GETOPT_OPTION_END |
283 | }; | 287 | }; |
284 | 288 | ||