Index: /projects/md2mb/devel/md2mb/bin/md2mb.pl
===================================================================
--- /projects/md2mb/devel/md2mb/bin/md2mb.pl	(revision 1453)
+++ /projects/md2mb/devel/md2mb/bin/md2mb.pl	(revision 1454)
@@ -34,13 +34,13 @@
 # parse command-line options
 GetOptions(
-	'cmd|c'           => \$cmd,
-	'debug|d'         => \$debug,
-	'file|f'          => \$file,
-	'help|h'          => \$help,
-	'man|m'           => \$man,
-	'oldroot|old|o=s' => \$oldroot,
-	'profile|p=s'     => \$profile,
-	'subdir|s=s'      => \$subdir,
-	'touch|t'         => \$touch,
+	'cmd|c'       => \$cmd,
+	'debug|d+'    => \$debug,
+	'file|f'      => \$file,
+	'help|h'      => \$help,
+	'man|m'       => \$man,
+	'oldroot|o=s' => \$oldroot,
+	'profile|p=s' => \$profile,
+	'subdir|s=s'  => \$subdir,
+	'touch|t'     => \$touch,
 ) or pod2usage(2);
 pod2usage(1) if ($help);
@@ -56,4 +56,5 @@
 DEBUG MODE, not doing anything, just printing
 --- current state ---
+debug   = $debug
 cmd     = $cmd
 oldroot = $oldroot
@@ -203,14 +204,14 @@
 
  Options:
-   -cmd     | -c                command to process mail
-   -debug   | -d		debug mode
-   -file    | -f                whether $newroot is a file or a directory
-   -help    | -h		brief help message
-   -man	    | -m		full documentation
-   -oldroot | -old | -o		location of the KMail mailboxes
-   -profile | -p		path to the Thunderbird profile to install to
-   -subdir  | -s		subdir that will be created to hold the
-				imported mails
-   -touch   | -t		create empty files corresponding to .sdb dirs
+   -cmd     | -c	command to process mail
+   -debug   | -d	debug mode
+   -file    | -f	whether $newroot is a file or a directory
+   -help    | -h	brief help message
+   -man	    | -m	full documentation
+   -oldroot | -o	location of the KMail mailboxes
+   -profile | -p	path to the Thunderbird profile to install to
+   -subdir  | -s	subdir that will be created to hold the
+			imported mails
+   -touch   | -t	create empty files corresponding to .sdb dirs
 
 =head1 OPTIONS
