diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-02-09 15:55:01 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-02-13 18:13:33 +0100 |
commit | dbacf0029104780556af5791f2c6a45edc7a5ec4 (patch) | |
tree | a1920549495d3b132503a3f620e5afe1edb2b579 /src/libctor.cc | |
parent | 6d66cbcb80f7d6755c8b594011e2a772469e914f (diff) |
Add dry-run option.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r-- | src/libctor.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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.", [&]() { |