Making a parser for a program, it is natural to use the program's name as the name of the parser, and it is conventional to get this name from argv[0], so something like:
import system
let progName = lastPathPart(getAppFilename())
But progName cannot be passed as an argument to newParser() (unless I've misunderstood!).
Making a parser for a program, it is natural to use the program's name as the name of the parser, and it is conventional to get this name from
argv[0]
, so something like:But
progName
cannot be passed as an argument tonewParser()
(unless I've misunderstood!).