From 5661a8303ca90822b22ebb59a45e31b309c59c19 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Mon, 18 Mar 2019 11:13:52 +0100 Subject: [PATCH] correct argument name, (#10813) * correct argument name, updated using poUsePath, based on feedback from c-blake * Update osproc.nim * explicit args parameter --- lib/pure/osproc.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 19d26f2eb7..af0e2e782a 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -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