[][src]Function dsa::app

pub fn app() -> App<'static, 'static>

Helper to create the basic app with options common between the cli-subcommand and the main app.

Examples

let matches = app().get_matches_from_safe(&["dsa-cli","-o","json","-V"]);
assert_eq!(matches.err().unwrap().kind,clap::ErrorKind::VersionDisplayed);