about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorJoshua Horwitz <joshua.d.horwitz@gmail.com>2017-03-07 23:04:59 -0500
committerJoshua Horwitz <joshua.d.horwitz@gmail.com>2017-03-09 18:17:45 -0500
commite2b4824b886d6a809bcd29f901c5bf62ab56f727 (patch)
tree74efec73cd89b68adddc23616afaa5142f4b2d9e /src/libstd/process.rs
parent3087a1f39eaeac9d76c8b159dcc64de515bb2b83 (diff)
downloadrust-e2b4824b886d6a809bcd29f901c5bf62ab56f727.tar.gz
rust-e2b4824b886d6a809bcd29f901c5bf62ab56f727.zip
Removed RustFMT changes
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 f846ef3e69e..e5ce30c5539 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: