Make parseopt available on all backends (#17009)
* Make parseopt available on all backends * fix spaces * fix getopt and update prelude * no crazy unnecessary version checks, use doAssert
This commit is contained in:
parent
4326f743d0
commit
fad8439b8d
5 changed files with 165 additions and 144 deletions
|
|
@ -48,7 +48,7 @@ import std/[
|
|||
|
||||
# Parsers:
|
||||
htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
|
||||
# fails: parseopt
|
||||
parseopt,
|
||||
|
||||
# XML processing:
|
||||
xmltree, xmlparser,
|
||||
|
|
@ -113,4 +113,8 @@ block: # cpDir, cpFile, dirExists, fileExists, mkDir, mvDir, mvFile, rmDir, rmF
|
|||
doAssert not dirExists(subDir)
|
||||
doAssert dirExists(subDir2)
|
||||
mvDir(subDir2, subDir)
|
||||
rmDir(dname)
|
||||
rmDir(dname)
|
||||
|
||||
block:
|
||||
# check parseopt can get command line:
|
||||
discard initOptParser()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue