From 489331e1bd61ab8357a0a644329df6ff9b2c709e Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 1 Aug 2021 20:47:53 -0700 Subject: [PATCH] projtool.pl: quiety accept --git-dir as verify option To find the current git directory with Git the command is `git rev-parse --git-dir`. When using the `projtool.pl verify --dir` command there might be some confusion and an attempt to use `projtool.pl verify --git-dir` instead. It's unambiguous, just make it quietly work as an alias for --dir. Signed-off-by: Kyle J. McKay --- toolbox/projtool.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/projtool.pl b/toolbox/projtool.pl index d0df48f..7213b96 100755 --- a/toolbox/projtool.pl +++ b/toolbox/projtool.pl @@ -1226,7 +1226,7 @@ sub cmd_verify { use Scalar::Util (); my $dirfp = 0; my $rt = sub { return ref($_[0]) ? Scalar::Util::reftype($_[0]) : '' }; - parse_options("quiet" => \$quiet, "dir" => \$dirfp, "directory" => \$dirfp); + parse_options("quiet" => \$quiet, "dir" => \$dirfp, "directory" => \$dirfp, "git-dir" =>\$dirfp); @ARGV == 1 or die_usage; my $project = undef; my $pname = undef; -- 2.11.4.GIT