bin/archive-dir

changeset 485
a58682115510
parent 477
eeafc178ddc4
child 529
99f120bc1ad9
--- a/bin/archive-dir
+++ b/bin/archive-dir
@@ -23,7 +23,7 @@ sub main {
     ['yes|y'   => "actually move stuff"],
     ['help|h'  => "print usage message and exit", {shortcircuit => 1}],
   );
-  print($usage->text), exit if $opt->help;
+  print($usage->text), exit if $opt->help || !@ARGV;
 
   archive_dir($opt, $_) for @ARGV;
 }

mercurial