summary refs log tree commit diff stats
path: root/doc/effects.txt
Commit message (Collapse)AuthorAgeFilesLines
* Nimrod renamed to NimAraq2014-08-281-2/+2
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* Integrating my changes, mostly minor/cosmetic fixes; plus a big Windows lib ↵PhiLho2010-05-211-5/+5
| | | | update
* fixed pango/pangoutils new wrappersAndreas Rumpf2010-02-261-0/+0
|
* continued work on html/xmlparserrumpf_a@web.de2010-02-141-0/+0
|
* version 0.8.2rumpf_a@web.de2009-10-211-0/+41
iv class='alt'>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

             
                





                               
                                                                                                     



                                                                              



                                                                                
import os
import osproc
import parseopt2
import sequtils

let argv = commandLineParams()

if argv == @[]:
  # this won't work with spaces
  assert execShellCmd(getAppFilename() & " \"foo bar\" --aa:bar=a --a=c:d --ab -c --a[baz]:doo") == 0
else:
  let f = toSeq(getopt())
  echo f.repr
  assert f[0].kind == cmdArgument and f[0].key == "foo bar" and f[0].val == ""
  assert f[1].kind == cmdLongOption and f[1].key == "aa" and f[1].val == "bar=a"
  assert f[2].kind == cmdLongOption and f[2].key == "a=c" and f[2].val == "d"
  assert f[3].kind == cmdLongOption and f[3].key == "ab" and f[3].val == ""
  assert f[4].kind == cmdShortOption and f[4].key == "c" and f[4].val == ""