diff options
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim index 629cdfa..25ab011 100644 --- a/src/config.nim +++ b/src/config.nim @@ -33,6 +33,7 @@ type checkIgnored*: bool printAurNotFound*: bool viewNoDefault*: bool + preBuildCommand*: Option[string] proc readConfigFile*(configFile: string): (OrderedTable[string, ref Table[string, string]], bool) = @@ -118,10 +119,11 @@ proc obtainConfig*(config: PacmanConfig): Config = let checkIgnored = options.hasKey("CheckIgnored") let printAurNotFound = options.hasKey("PrintAurNotFound") let viewNoDefault = options.hasKey("ViewNoDefault") + let preBuildCommand = options.opt("PreBuildCommand") Config(root: root, db: db, tmpRoot: tmpRoot, color: color, dbs: config.dbs, arch: config.arch, debug: config.debug, progressBar: config.progressBar, verbosePkgList: config.verbosePkgList, pgpKeyserver: config.pgpKeyserver, ignorePkgs: config.ignorePkgs, ignoreGroups: config.ignoreGroups, - aurComments: aurComments, checkIgnored: checkIgnored, - printAurNotFound: printAurNotFound, viewNoDefault: viewNoDefault) + aurComments: aurComments, checkIgnored: checkIgnored, printAurNotFound: printAurNotFound, + viewNoDefault: viewNoDefault, preBuildCommand: preBuildCommand) |