Add note to process::arg[s] that args shouldn't be escaped or quoted

This commit is contained in:
Matyáš Racek 2020-10-31 14:40:36 +01:00 committed by GitHub
parent 3478d7c360
commit d417bbef95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -557,6 +557,9 @@ impl Command {
///
/// [`args`]: Command::args
///
/// Note that the argument is passed to the program directly as is, so you shouldn't wrap it in quotes
/// or escape special characters the same way you would do that when running the program from terminal.
///
/// # Examples
///
/// Basic usage:
@ -582,6 +585,9 @@ impl Command {
///
/// [`arg`]: Command::arg
///
/// Note that each argument is passed to the program directly as is, so you shouldn't wrap it in quotes
/// or escape special characters the same way you would do that when running the program from terminal directly.
///
/// # Examples
///
/// Basic usage: