-# Run this from the perltidy main installation directory. It reads
-# bin/perltidy and lib/*.pm and writes a file 'perltidy-VERSION.pl' in the
-# current directory.
+usage:
+ perl pm2pl [-h -o ofile ]
+
+ -h prints this help
+ -o set output file [ default is 'perltidy-VERSION.pl' ]
+ -D set DEVEL_MODE => 1 [ for extra testing when debugging ]
+EOM
+
+my @option_string = qw(
+ h
+ o:s
+ D
+);
+
+my %Opts = ();
+if ( !GetOptions( \%Opts, @option_string ) ) {
+ die "Programming Bug: error in setting default options";
+}
+
+if ( $Opts{h} ) {
+ print $usage;
+ exit 1;
+}