Skip to content

Commit

Permalink
add support for -g flag, fix nim-lang#1069
Browse files Browse the repository at this point in the history
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
  • Loading branch information
foxoman authored Mar 4, 2023
1 parent 47531a6 commit 158e8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/options.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 158e8fb

Please sign in to comment.