]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
scripts/add_maintainers.pl: add -o as an alternative to --patchdir
authorElliott Mitchell <ehem+xen@m5p.com>
Mon, 2 May 2022 06:50:02 +0000 (08:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 May 2022 06:50:02 +0000 (08:50 +0200)
This matches the output directory option used by `git format-patch`.  I
suspect I'm not the only one who finds matching `git format-patch` more
intuitive, than -d for directory.

Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
scripts/add_maintainers.pl

index 5a6d0f631b80f3a703fdef36be22e2fb52f74b82..380e8da22ad04c9faa63ae9749a4cd61e16e674e 100755 (executable)
@@ -32,7 +32,7 @@ $get_maintainer =~ s/add_maintainers/get_maintainer/;
 my $usage = <<EOT;
 OPTIONS:
 --------
-USAGE: $tool [options] (--patchdir | -d) <patchdir>
+USAGE: $tool [options] (--patchdir | -d | -o) <patchdir>
 
   --reroll-count <n> | -v <n>
     Choose patch files for specific version. This results into the
@@ -223,7 +223,7 @@ my $patch_ext           = ".patch";
 my $maintainers         = "MAINTAINERS";
 
 if (!GetOptions(
-                'd|patchdir=s'     => \$patch_dir,
+                'd|o|patchdir=s'   => \$patch_dir,
                 'v|reroll-count=i' => \$rerollcount,
                 'p|patchcc=s'      => \$plocation,
                 'c|covercc=s'      => \$clocation,