From 26f34692fac6e9daec13c770421b4ed990d1c321 Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Fri, 14 Jun 2024 16:48:12 -0400 Subject: [PATCH] add version to default --- cmd/root.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index e62646a8..03f4f31a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -34,8 +34,9 @@ order of precedence: If none of the three options are used, then gitleaks will use the default config` var rootCmd = &cobra.Command{ - Use: "gitleaks", - Short: "Gitleaks scans code, past or present, for secrets", + Use: "gitleaks", + Short: "Gitleaks scans code, past or present, for secrets", + Version: Version, } func init() {