From 158e8fbbeee84b5ee6611a229989ce9b1d96fc89 Mon Sep 17 00:00:00 2001 From: Sultan Al Isaiee Date: Sun, 5 Mar 2023 00:37:34 +0400 Subject: [PATCH] add support for -g flag, fix #1069 The -g flag in the Nimble package manager would result in an error due to the flag being unrecognized, it is short of global flag --- src/nimblepkg/options.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimblepkg/options.nim b/src/nimblepkg/options.nim index 5baec4d8..97983cac 100644 --- a/src/nimblepkg/options.nim +++ b/src/nimblepkg/options.nim @@ -617,7 +617,7 @@ proc parseFlag*(flag, val: string, result: var Options, kind = cmdLongOption) = raise nimbleError(multiplePathOptionsGivenMsg) of "with-dependencies": result.action.withDependencies = true - of "global": + of "g", "global": result.action.global = true of "develop-file": if result.action.developFile.len == 0: