main.rs 1.17 KB
Newer Older
Shawn Tabrizi's avatar
Shawn Tabrizi committed
1
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
Gav's avatar
Gav committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This file is part of Polkadot.

// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.

//! Polkadot CLI

#![warn(missing_docs)]

21
use cli::VersionInfo;
22

23
fn main() -> Result<(), cli::Error> {
Arkadiy Paronyan's avatar
Arkadiy Paronyan committed
24
	let version = VersionInfo {
Gav Wood's avatar
Gav Wood committed
25
		name: "Parity Polkadot",
26
		commit: env!("VERGEN_SHA_SHORT"),
Arkadiy Paronyan's avatar
Arkadiy Paronyan committed
27
28
29
		version: env!("CARGO_PKG_VERSION"),
		executable_name: "polkadot",
		author: "Parity Team <admin@parity.io>",
Gav Wood's avatar
Gav Wood committed
30
		description: "Polkadot Relay-chain Client Node",
31
		support_url: "https://github.com/paritytech/polkadot/issues/new",
Gavin Wood's avatar
Gavin Wood committed
32
		copyright_start_year: 2017,
Arkadiy Paronyan's avatar
Arkadiy Paronyan committed
33
	};
34

Gavin Wood's avatar
Gavin Wood committed
35
	cli::run(version)
Gav's avatar
Gav committed
36
}