correct argument name, (#10813)

* correct argument name,

updated using poUsePath, based on feedback from c-blake

* Update osproc.nim

* explicit args parameter
This commit is contained in:
Anthon van der Neut
2019-03-18 11:13:52 +01:00
committed by Andreas Rumpf
parent 862897dc0f
commit 5661a8303c

View File

@@ -97,7 +97,8 @@ proc execProcess*(command: string,
## Example:
##
## .. code-block:: Nim
## let outp = execProcess("nim c -r mytestfile.nim")
## let outp = execProcess("nim", args=["c", "-r", "mytestfile.nim"], options={poUsePath})
## let outp_shell = execProcess("nim c -r mytestfile.nim")
## # Note: outp may have an interleave of text from the nim compile
## # and any output from mytestfile when it runs