smock: sort the commandline options
[fedora-mingw.git] / smock / smock.pl
index 2ac7955..fc7c998 100755 (executable)
@@ -25,25 +25,25 @@ use Pod::Usage;
 use File::Temp qw(tempfile);
 
 my @arches = ();
+my $chain = 0;
 my @distros = ();
-my $suffix = "";
-my $localrepo = $ENV{HOME} . "/public_html/smock/yum";
 my $dryrun = 0;
-my $keepgoing = 0;
-my $chain = 0;
 my $help = 0;
+my $keepgoing = 0;
+my $localrepo = $ENV{HOME} . "/public_html/smock/yum";
 my $man = 0;
+my $suffix = "";
 
 GetOptions (
     "arch=s" => \@arches,
+    "chain" => \$chain,
     "distro=s" => \@distros,
-    "suffix=s" => \$suffix,
-    "localrepo=s" => \$localrepo,
     "dryrun" => \$dryrun,
-    "keepgoing" => \$keepgoing,
-    "chain" => \$chain,
     "help|?" => \$help,
-    "man" => \$man
+    "keepgoing" => \$keepgoing,
+    "localrepo=s" => \$localrepo,
+    "man" => \$man,
+    "suffix=s" => \$suffix,
     ) or pod2usage (2);
 pod2usage (1) if $help;
 pod2usage (-exitstatus => 0, -verbose => 2) if $man;
@@ -86,15 +86,17 @@ and optionally a web server before you can use this command.
 Specify the architecture(s) to build, eg. i386, x86_64.  You can
 list this option several times to build several architectures.
 
+=item B<--chain>
+
+Don't run any commands, just print the packages in the correct
+format for chain building.  See:
+L<http://fedoraproject.org/wiki/Koji/UsingKoji#Chained_builds>
+
 =item B<--distro>
 
 Specify the distribution(s) to build, eg. fedora-9, fedora-10.
 You can list this option several times to build several distributions.
 
-=item B<--localrepo>
-
-Local repository.  Defaults to C<$HOME/public_html/smock/yum>
-
 =item B<--dryrun>
 
 Don't run any commands, just print the packages in the order
@@ -110,11 +112,9 @@ be rebuilt because of an error.
 
 However, it is very useful.
 
-=item B<--chain>
+=item B<--localrepo>
 
-Don't run any commands, just print the packages in the correct
-format for chain building.  See:
-L<http://fedoraproject.org/wiki/Koji/UsingKoji#Chained_builds>
+Local repository.  Defaults to C<$HOME/public_html/smock/yum>
 
 =item B<--suffix>