Skip to content

Commit

Permalink
other/dummy: write util name in the const NAME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingshen Sun committed Sep 1, 2018
1 parent 076dbb2 commit 723dbb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmesabox/src/other/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use clap::{App, Arg, ArgMatches};
use std::io::{self, Write};
use {UtilSetup, ArgsIter, Result, UtilRead, UtilWrite};

const NAME: &str = "dummy";
pub const DESCRIPTION: &str = "A dummy utility to demonstrate the framework";

#[derive(Fail, Debug)]
Expand Down Expand Up @@ -42,7 +43,7 @@ where
}

fn create_app() -> App<'static, 'static> {
util_app!("dummy")
util_app!(NAME)
.arg(Arg::with_name("about")
.short("a")
.long("about")
Expand Down

0 comments on commit 723dbb7

Please sign in to comment.