Skip to content

Commit

Permalink
feat: structure --help output a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 24, 2023
1 parent 3bb6c95 commit 952ced7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::pipelines::PipelineStage;

/// Config options for the build system.
#[derive(Clone, Debug, Default, Deserialize, Args)]
#[command(next_help_heading = "Build")]
pub struct ConfigOptsBuild {
/// The index HTML file to drive the bundling process [default: index.html]
pub target: Option<PathBuf>,
Expand Down Expand Up @@ -138,6 +139,7 @@ impl FromStr for ConfigDuration {

/// Config options for the watch system.
#[derive(Clone, Debug, Default, Deserialize, Args)]
#[command(next_help_heading = "Watch")]
pub struct ConfigOptsWatch {
/// Watch specific file(s) or folder(s) [default: build target parent folder]
#[arg(short, long, value_name = "path")]
Expand Down Expand Up @@ -182,6 +184,7 @@ impl Display for WsProtocol {

/// Config options for the serve system.
#[derive(Clone, Debug, Default, Deserialize, Args)]
#[command(next_help_heading = "Serve")]
pub struct ConfigOptsServe {
/// The address to serve on [default: 127.0.0.1]
#[arg(long)]
Expand Down Expand Up @@ -239,6 +242,7 @@ pub struct ConfigOptsServe {

/// Config options for the serve system.
#[derive(Clone, Debug, Default, Deserialize, Args)]
#[command(next_help_heading = "Clen")]
pub struct ConfigOptsClean {
/// The output dir for all final assets [default: dist]
#[arg(short, long)]
Expand Down

0 comments on commit 952ced7

Please sign in to comment.