Clean struct-opt derive

This commit is contained in:
Aster committed 2022-02-08 00:51:21 +08:00
1 parent eb7388794a
commit b6c6dd6532
10 files changed
+49 -61

No files matched your search

+3 -5
View File
@@ -1,10 +1,8 @@
use std::{io::Write, path::PathBuf};
use super::*;
use crate::{cfg::ConfigOptsBuild, gen_page};
use structopt::StructOpt;
/// Build the Rust WASM app and all of its assets.
#[derive(Clone, Debug, StructOpt)]
#[derive(Clone, Debug, Parser)]
#[structopt(name = "build")]
pub struct Build {
#[structopt(flatten)]
@@ -15,7 +13,7 @@ impl Build {
pub fn build(self) -> anyhow::Result<()> {
let mut crate_config = crate::CrateConfig::new()?;
// change the relase state.
// change the release state.
crate_config.with_release(self.build.release);
if self.build.example.is_some() {