Skip to content

Commit

Permalink
docs: explain create_no_window command in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbabcock committed Sep 1, 2024
1 parent 2dd119e commit d189852
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,12 @@ impl FfmpegCommand {
self
}

/// Disable subprocess console window creation on Windows.
/// Called automatically in the constructor.
/// Disable creating a new console window for the spawned process on Windows.
/// Has no effect on other platforms. This can be useful when spawning a command
/// from a GUI program.
///
/// This is called automatically in the constructor. To override, use
/// `CommandExt::creation_flags()` directly on the inner `Command`.
pub fn create_no_window(&mut self) -> &mut Self {
self.as_inner_mut().create_no_window();
self
Expand Down

0 comments on commit d189852

Please sign in to comment.