This commit is contained in:
@ -28,8 +28,8 @@ proc save(wordCounts: CountTable; dictName, countName: string) =
|
||||
|
||||
|
||||
type Config = object
|
||||
srcPath: string,
|
||||
dstPath: string,
|
||||
srcPath: string
|
||||
dstPath: string
|
||||
|
||||
|
||||
proc parseInput(): Config =
|
||||
@ -41,8 +41,8 @@ proc parseInput(): Config =
|
||||
if paramCount() > 1:
|
||||
result.dstPath = paramStr(2)
|
||||
|
||||
if not dirExists(basePath):
|
||||
quit("Could not locate datafiles: directory " & basePath & " does not exist.")
|
||||
if not dirExists(result.srcPath):
|
||||
quit("Could not locate datafiles: directory " & result.srcPath & " does not exist.")
|
||||
|
||||
|
||||
var
|
||||
|
Reference in New Issue
Block a user