Unable to pass arguments containing double-quotes
    
    
     parseopt
    
    for poKind, poKey, poVal in getopt():
      case poKind
      of cmdArgument:
        discard
      of cmdLongOption, cmdShortOption:
        case poKey
        of "n":
          echo "name = " & poVal
      of cmdEnd:
        assert(false)
    
    
    Run

./test -n='"Weird Al" Yankovic'

It echoes back only "/" instead of '"Weird Al" Yankovic' .. is this a bug or 
workaround how the string is passed on the command-line?

Reply via email to