fn init_app<'a, 'b>() -> clap::App<'a, 'b> {
	clap::App::new("hal")
		.version(clap::crate_version!())
		.author("Steven Roose <steven@stevenroose.org>")
		.about("hal - the Bitcoin companion")
		.settings(&[
			clap::AppSettings::GlobalVersion,
			clap::AppSettings::UnifiedHelpMessage,
			clap::AppSettings::VersionlessSubcommands,
			clap::AppSettings::AllowExternalSubcommands,
			clap::AppSettings::DisableHelpSubcommand,
			clap::AppSettings::AllArgsOverrideSelf,
			//TODO(stevenroose) re-enable after https://github.com/clap-rs/clap/pull/1412/
			//clap::AppSettings::SubcommandRequiredElseHelp,
		])
		.subcommands(cmd::subcommands())
		.arg(
			cmd::opt("verbose", "Print verbose logging output to stderr")
				.short("v")
				.takes_value(false)
				.global(true),
		)
}
/// Create the main app object.
Create the main app object.
Create the main app object .
fn init_app<'a, 'b>() -> clap::App<'a, 'b> {
	clap::App::new("hal")
		.version(clap::crate_version!())
		.author("Steven Roose <steven@stevenroose.org>")
		.about("hal - the Bitcoin companion")
		.settings(&[
			clap::AppSettings::GlobalVersion,
			clap::AppSettings::UnifiedHelpMessage,
			clap::AppSettings::VersionlessSubcommands,
			clap::AppSettings::AllowExternalSubcommands,
			clap::AppSettings::DisableHelpSubcommand,
			clap::AppSettings::AllArgsOverrideSelf,
			//TODO(stevenroose) re-enable after https://github.com/clap-rs/clap/pull/1412/
			//clap::AppSettings::SubcommandRequiredElseHelp,
		])
		.subcommands(cmd::subcommands())
		.arg(
			cmd::opt("verbose", "Print verbose logging output to stderr")
				.short("v")
				.takes_value(false)
				.global(true),
		)
}
fn init_app < ' a , ' b > ( ) -> clap :: App < ' a , ' b > { clap :: App :: new ( " " ) . version ( clap :: crate_version ! ( ) ) . author ( " " ) . about ( " " ) . settings ( & [ clap :: AppSettings :: GlobalVersion , clap :: AppSettings :: UnifiedHelpMessage , clap :: AppSettings :: VersionlessSubcommands , clap :: AppSettings :: AllowExternalSubcommands , clap :: AppSettings :: DisableHelpSubcommand , clap :: AppSettings :: AllArgsOverrideSelf , //TODO(stevenroose) re-enable after https://github.com/clap-rs/clap/pull/1412/ //clap::AppSettings::SubcommandRequiredElseHelp, ] ) . subcommands ( cmd :: subcommands ( ) ) . arg ( cmd :: opt ( " " , " " ) . short ( " " ) . takes_value ( false ) . global ( true ) , ) }
Create the main app object.
Create the main app object .