Clean struct-opt derive
This commit is contained in:
1 parent
eb7388794a
commit
b6c6dd6532
10 files changed
+49
-61
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user