mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-14 08:11:11 +01:00
Mark cli::Args non-exhaustive so ArgsBuilder usage is mandatory
This commit is contained in:
parent
fca038b23c
commit
0b79e93c84
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
//! CLI arguments and library Args struct
|
||||
//!
|
||||
//! Use `ArgsBuilder` preferentially as that will shield you from breaking changes resulting from
|
||||
//! added fields and some field type changes.
|
||||
//! The [`Args`] struct is not constructable, use [`ArgsBuilder`].
|
||||
//!
|
||||
//! # Examples
|
||||
//!
|
||||
|
@ -26,6 +25,7 @@ use std::{
|
|||
#[derive(Builder, Clone, Debug)]
|
||||
#[builder(setter(into, strip_option))]
|
||||
#[builder(build_fn(validate = "Self::validate"))]
|
||||
#[non_exhaustive]
|
||||
pub struct Args {
|
||||
/// Command to execute in popen3 format (first program, rest arguments).
|
||||
pub cmd: Vec<String>,
|
||||
|
|
Loading…
Reference in a new issue