1
0
mirror of https://github.com/jht5945/prettyjson.git synced 2025-12-27 09:10:04 +08:00

update name

This commit is contained in:
2019-08-31 15:09:22 +08:00
parent 4652bac998
commit 49aa103bfd

View File

@@ -16,16 +16,17 @@ use rust_util::{
};
use opt::*;
const NAME: &str = env!("CARGO_PKG_NAME");
const VERSION: &str = env!("CARGO_PKG_VERSION");
const GIT_HASH: &str = env!("GIT_HASH");
fn print_version() {
print!(r#"prettyjson {} - {}
print!(r#"{} {} - {}
Copyright (C) 2019 Hatter Jiang.
License MIT <https://opensource.org/licenses/MIT>
Written by Hatter Jiang
"#, VERSION, &GIT_HASH[0..7]);
"#, NAME, VERSION, &GIT_HASH[0..7]);
}
@@ -34,7 +35,7 @@ fn main() {
options.parse_args();
if options.verbose {
print_message(MessageType::DEBUG, &format!("prettyjson version: {}, git hash: {}", VERSION, GIT_HASH));
print_message(MessageType::DEBUG, &format!("{} version: {}, git hash: {}", NAME, VERSION, GIT_HASH));
}
if options.version {