From dbacf0029104780556af5791f2c6a45edc7a5ec4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 9 Feb 2025 15:55:01 +0100 Subject: Add dry-run option. --- src/libctor.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libctor.cc') diff --git a/src/libctor.cc b/src/libctor.cc index aaf17c9..3bfa041 100644 --- a/src/libctor.cc +++ b/src/libctor.cc @@ -132,6 +132,13 @@ int main(int argc, char* argv[]) return 0; }); + opt.add("dry-run", no_argument, 'n', + "Print the commands that would be executed, but do not execute them.", + [&]() { + settings.dry_run = true; + return 0; + }); + opt.add("configure-cmd", no_argument, key++, "Print commandline for last configure.", [&]() { -- cgit v1.2.3