summaryrefslogtreecommitdiff
path: root/src/libctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libctor.cc')
-rw-r--r--src/libctor.cc7
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.",
[&]() {