diff --git a/xtask/src/main.rs b/xtask/src/main.rs index d3f16d35..ac516a56 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -37,8 +37,8 @@ fn main() { .subcommand( Command::new("doc").arg( Arg::new("open") - .value_name("open") - .index(1) + .short('o') + .long("open") .action(ArgAction::SetTrue), ), ) diff --git a/xtask/src/task/doc.rs b/xtask/src/task/doc.rs index a90b3354..06585898 100644 --- a/xtask/src/task/doc.rs +++ b/xtask/src/task/doc.rs @@ -43,7 +43,7 @@ fn run_cargo_doc(should_open: OpenDoc) -> Result<()> { out_dir.pop(); // Add the rest of the path to the Hipcheck index file. - pathbuf![&out_dir, ".target", "doc", "hipcheck", "index.html"] + pathbuf![&out_dir, ".target", "doc", "hc", "index.html"] }; open::that(path)?;