26 lines
557 B
Rust
26 lines
557 B
Rust
//! Substrate Node Template CLI library.
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(unused_extern_crates)]
|
|
|
|
mod chain_spec;
|
|
#[macro_use]
|
|
mod service;
|
|
mod cli;
|
|
|
|
pub use sc_cli::{VersionInfo, IntoExit, error};
|
|
|
|
fn main() -> Result<(), cli::error::Error> {
|
|
let version = VersionInfo {
|
|
name: "Substrate Node",
|
|
commit: env!("VERGEN_SHA_SHORT"),
|
|
version: env!("CARGO_PKG_VERSION"),
|
|
executable_name: "node-template",
|
|
author: "Anonymous",
|
|
description: "Template Node",
|
|
support_url: "support.anonymous.an",
|
|
};
|
|
|
|
cli::run(std::env::args(), cli::Exit, version)
|
|
}
|