Skip to content

Commit

Permalink
refac: Use cargo version as CLI version
Browse files Browse the repository at this point in the history
  • Loading branch information
Richterrettich committed Aug 18, 2020
1 parent f1fd1a3 commit a39997a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ pub const POST_INSTALL_SCRIPTLET_ARG: &str = "post-install-script";
pub const PRE_UNINSTALL_SCRIPTLET_ARG: &str = "pre-uninstall-script";
pub const POST_UNINSTALL_SCRIPTLET_ARG: &str = "post-uninstall-script";
pub const SIGN_WITH_PGP_ASC_ARG: &str = "sign-with-pgp-asc";
const VERSION: &'static str = env!("CARGO_PKG_VERSION");

pub fn build_cli() -> App<'static, 'static> {
let supported_compression_options = ["gzip", "none"];
App::new("rpm-builder")
.version("0.6.0")
.version(VERSION)
.author("René R. <[email protected]>")
.about("Build rpms with ease")
.arg(Arg::with_name(OUT_ARG)
Expand Down

0 comments on commit a39997a

Please sign in to comment.