replace getOpt with getopt (#22515)

This commit is contained in:
Nan Xiao
2023-08-19 21:05:17 +08:00
committed by GitHub
parent c44c8ddb44
commit 6eb722c47d
6 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ else:
var
task: string
printTaskList: bool
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdLongOption, cmdShortOption:
case key.tolower

View File

@@ -113,7 +113,7 @@ when true:
block:
var zoneCfgFile = "./server_settings.json"
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdShortOption, cmdLongOption:
case key

View File

@@ -691,7 +691,7 @@ when true:
block:
var bPlayOffline = false
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdArgument:
if key == "offline": bPlayOffline = true

View File

@@ -159,7 +159,7 @@ proc poll*(timeout: int = 250) =
when true:
import parseopt, strutils
var cfgFile = "dirserver_settings.json"
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdShortOption, cmdLongOption:
case key

View File

@@ -144,7 +144,7 @@ proc poll*(timeout: int = 250) =
when true:
import parseopt, strutils
var zoneCfgFile = "./server_settings.json"
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdShortOption, cmdLongOption:
case key

View File

@@ -65,7 +65,7 @@ else:
var
task: string
printTaskList: bool
for kind, key, val in getOpt():
for kind, key, val in getopt():
case kind
of cmdLongOption, cmdShortOption:
case key.tolowerAscii