Skip to content

Commit

Permalink
WIP: rework CLI help to be prettier, fit in smaller width, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Aug 1, 2024
1 parent 8dcde14 commit 53dd11d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions moz-webgpu-cts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ struct Cli {

#[derive(Debug, Parser)]
enum Subcommand {
/// Adjust expected test outcomes in metadata, optionally using `wptreport.json` reports from
/// CI runs covering your browser's implementation of WebGPU.
/// Adjust test metadata's `expected` outcome field according to some criteria.
///
/// Normally, one uses`wptreport.json` reports from CI runs covering your browser's
/// implementation of WebGPU with this command.
///
/// As your browser's behavior changes, one generally expects CTS test outcomes to change. When
/// you are testing your own changes in CI, you can use this subcommand to update expected
Expand All @@ -81,7 +83,7 @@ enum Subcommand {
/// With both steps, you may delete the local copies of these reports after being processed
/// with `update-expected`. You should not need to re-process them unless you have made an
/// error in following these steps.
#[clap(alias = "process-reports")]
#[clap(alias = "process-reports", next_help_heading = "WPT manipulation")]
UpdateExpected {
#[clap(flatten)]
exec_report_spec: ExecReportSpec,
Expand All @@ -93,22 +95,25 @@ enum Subcommand {
#[clap(value_enum, long)]
implementation_status: Vec<ImplementationStatus>,
},
/// Parse test metadata, apply automated fixups, and re-emit it in normalized form.
#[clap(name = "fixup", alias = "fmt")]
/// Parse test metadata, apply automated fixups, and re-emit it.
#[clap(alias = "fmt", subcommand_help_heading = "asdf")]
Fixup,
Triage {
#[clap(value_enum, long, default_value_t = Default::default())]
on_zero_item: OnZeroItem,
},
/// Adjust test metadata's `implementation-status` field according to some criteria.
///
/// Identify and promote tests that are ready to come out of the `backlog` implementation
/// status.
UpdateBacklog {
/// The mode to use for updating tests.
#[clap(subcommand)]
preset: UpdateBacklogSubcommand,
},
/// Dump all metadata as JSON. Do so at your own risk; no guarantees are made about the
/// schema of this JSON, for now.
/// Dump all test metadata as JSON. Do so at your own risk!
///
/// No guarantees are made about the schema of this JSON, for now.
DumpJson,
}

Expand Down

0 comments on commit 53dd11d

Please sign in to comment.