main: Add --test option for a dry run.
[matthijs/projects/backupninja.git] / src / backupninja
index a77242d55a14df5b610324da43bce7dab3df59db..019dfbdb48cd0489afb793a672d232b75bba1dd0 100755 (executable)
@@ -59,6 +59,18 @@ def make_option_parser():
                      , default="actions"
                      , dest="actions_dir"
                      , metavar="ACTIONS_DIR")
+    parser.add_option( "-d", "--debug"
+                     , help="Run in debug mode. This only means logging is "
+                            "more verbose."
+                     , action="store_true"
+                     , dest="debug")
+    parser.add_option( "-t", "--test"
+                     , help="Run in testing mode. This means no actions "
+                            "are taken, only show what would be done "
+                            "(as far as possible without taking "
+                            "actions, of course)."
+                     , action="store_true"
+                     , dest="test")
     return parser
  
 def main(argv):