]> sjero.net Git - wget/commitdiff
Minor tweaks to freeopts.
authorMicah Cowan <micah@cowan.name>
Sat, 25 Oct 2008 14:13:24 +0000 (07:13 -0700)
committerMicah Cowan <micah@cowan.name>
Sat, 25 Oct 2008 14:13:24 +0000 (07:13 -0700)
util/freeopts

index 0df22a79aa064fbbe404141cd60d76aade0bf485..75f594a1330f033137f0f5831d2b7e22f9afc38b 100755 (executable)
@@ -29,7 +29,7 @@ END {
     my $cols = 0;
     my $max_cols = 13;
     my $opt_chars = 
-    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%+/";
+    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
     print "Free chars:\n\t";
     for (my $i = 0; $i < length $opt_chars; ++$i, ++$cols) {
         if ($cols == $max_cols) {
@@ -39,9 +39,9 @@ END {
         my $opt = substr($opt_chars,$i,1);
         print ' ';
         if (!$used_chars{ $opt }) {
-            print $opt;
+            print "-$opt";
         } else {
-            print ' ';
+            print '  ';
         }
     }
     print "\n";