1
0
mirror of https://github.com/jht5945/prettyjson.git synced 2025-12-27 17:20:05 +08:00

use package version

This commit is contained in:
2019-07-28 11:12:56 +08:00
parent b4c38ebc7d
commit c978c22161
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ use std::{
use argparse::{ArgumentParser, StoreTrue, Store};
use rust_util::*;
const VERSION: &str = "0.1";
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
fn print_version() {
print!(r#"prettyjson {}