Export initOptions for choosenim
This commit is contained in:
parent
a2ec2db8f2
commit
5bb795a364
1 changed files with 3 additions and 2 deletions
|
|
@ -371,7 +371,8 @@ proc parseFlag*(flag, val: string, result: var Options, kind = cmdLongOption) =
|
|||
if not wasFlagHandled and not isGlobalFlag:
|
||||
result.unknownFlags.add((kind, flag, val))
|
||||
|
||||
proc initOptions(): Options =
|
||||
proc initOptions*(): Options =
|
||||
# Exported for choosenim
|
||||
Options(
|
||||
action: Action(typ: actionNil),
|
||||
pkgInfoCache: newTable[string, PackageInfo](),
|
||||
|
|
@ -524,4 +525,4 @@ proc getCompilationBinary*(options: Options): Option[string] =
|
|||
if runFile.len > 0:
|
||||
return some(runFile)
|
||||
else:
|
||||
discard
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue