about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-20 23:44:56 -0400
committerGitHub <noreply@github.com>2017-03-20 23:44:56 -0400
commit42cfdc1955e7585caa61d6c9fd5553a2acf8ed86 (patch)
tree7dd4e55ba25c08cfca7ec2c1ea770fbf10a025dc /src/libstd/process.rs
parentfcc2d257941ce8922cb6c1c6f64a82183ed659a3 (diff)
parente2b4824b886d6a809bcd29f901c5bf62ab56f727 (diff)
downloadrust-42cfdc1955e7585caa61d6c9fd5553a2acf8ed86.tar.gz
rust-42cfdc1955e7585caa61d6c9fd5553a2acf8ed86.zip
Rollup merge of #40312 - jdhorwitz:papercut, r=steveklabnik
Papercut

r? @steveklabnik
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 97c48ee5903..7a85e588662 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -343,6 +343,23 @@ impl Command {
 
     /// Add an argument to pass to the program.
     ///
+    /// Only one argument can be passed per use. So instead of:
+    ///
+    /// ```ignore
+    /// .arg("-C /path/to/repo")
+    /// ```
+    ///
+    /// usage would be:
+    ///
+    /// ```ignore
+    /// .arg("-C")
+    /// .arg("/path/to/repo")
+    /// ```
+    ///
+    /// To pass multiple arguments see [`args`].
+    ///
+    /// [`args`]: #method.args
+    ///
     /// # Examples
     ///
     /// Basic usage:
@@ -364,6 +381,10 @@ impl Command {
 
     /// Add multiple arguments to pass to the program.
     ///
+    /// To pass a single argument see [`arg`].
+    ///
+    /// [`arg`]: #method.arg
+    ///
     /// # Examples
     ///
     /// Basic usage: