parseopt of course can extract the argument too
    
    
    import parseopt
    
    let cmdline = "config create \"a configuration\""
    var opt = initOptParser(cmdline)
    for kind, key, val in opt.getOpt():
      case kind
      of cmdArgument:
        echo "argument: ", key
      else:
        discard
    
    
    Run

Reply via email to