specifying both --csv and --csv-path should not be necessary default tip

Wed, 25 Feb 2026 22:40:43 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 25 Feb 2026 22:40:43 +0100
changeset 79
cd8ad39dda76
parent 78
5177d8af5536

specifying both --csv and --csv-path should not be necessary

relates to #806

src/main.cpp file | annotate | diff | comparison | revisions
--- a/src/main.cpp	Wed Feb 25 22:33:46 2026 +0100
+++ b/src/main.cpp	Wed Feb 25 22:40:43 2026 +0100
@@ -48,7 +48,7 @@
         "   -a, --author <name>       Only report this author\n"
         "                             (repeat option to report multiple authors)\n"
         "   -A, --authormap <file>    Apply an author mapping file\n"
-        "       --csv                 Output the gathered data as CSV\n"
+        "       --csv                 Output the gathered data as CSV to stdout\n"
         "       --csv-path <file>     Write CSV data to file instead of stdout\n"
         "   -d, --depth <num>         The search depth (default: 1, max: 255)\n"
         "   -f, --fragment [indent]   Output as fragment (HTML only)\n"
@@ -145,6 +145,7 @@
         } else if (chk_arg(argv[i], "--csv", nullptr)) {
             settings.csv = true;
         } else if (chk_arg(argv[i], "--csv-path", nullptr)) {
+            settings.csv = true;
             if (i + 1 < argc) {
                 settings.csv_path.assign(argv[++i]);
             } else {

mercurial