diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-09-12 20:07:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-09-12 20:07:56 (GMT) |
commit | fef46dc1537e3302ac7bab653d24495c570e1d5c (patch) | |
tree | ef7c774bc03f6f23945d56980d40cad73bfd3455 /src/rost.c | |
parent | 4875f28a2d1a44d6ddc860b51a78ad9800a95de7 (diff) |
Introduce verbosity levels when displaying scan results as text.
Diffstat (limited to 'src/rost.c')
-rw-r--r-- | src/rost.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -167,6 +167,7 @@ int main(int argc, char **argv) GBinContent *content; /* Contenu à analyser */ GScanContext *context; /* Contexte des trouvailles */ sized_string_t padding; /* Bourrage pour le JSON */ + bool full; /* Détailler l'affichage ? */ static struct option long_options[] = { { "help", no_argument, NULL, 'h' }, @@ -309,7 +310,12 @@ int main(int argc, char **argv) } else - g_content_scanner_output_to_text(scanner, context, STDOUT_FILENO); + { + full = g_scan_options_get_print_strings(options); + + g_content_scanner_output_to_text(scanner, context, full, STDOUT_FILENO); + + } g_object_unref(G_OBJECT(context)); g_object_unref(G_OBJECT(content)); |