git.delta.rocks / unique-network / refs/commits / b6bfc95d7161

difftreelog

source

src/main.rs624 Bsourcehistory
1//! Substrate Node Template CLI library.23#![warn(missing_docs)]4#![warn(unused_extern_crates)]56mod chain_spec;7#[macro_use]8mod service;9mod cli;1011pub use substrate_cli::{VersionInfo, IntoExit, error};1213fn main() {14	let version = VersionInfo {15		name: "Substrate Node",16		commit: env!("VERGEN_SHA_SHORT"),17		version: env!("CARGO_PKG_VERSION"),18		executable_name: "node-template",19		author: "Anonymous",20		description: "Template Node",21		support_url: "support.anonymous.an",22	};2324	if let Err(e) = cli::run(::std::env::args(), cli::Exit, version) {25		eprintln!("Fatal error: {}\n\n{:?}", e, e);26		std::process::exit(1)27	}28}