From fff7baca2d3871cc75b96fa45f55b348ac365422 Mon Sep 17 00:00:00 2001 From: Joe Harrison Date: Mon, 25 Oct 2021 23:46:36 +0100 Subject: [PATCH] update command line help desciption --- Cargo.toml | 2 +- src/cli/mod.rs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 12486e1..8d495ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Joe Harrison "] edition = "2021" repository = "https://github.com/Joeyh021/PATP" license = "MIT" -description = "An emulator and assembler for the PATP microprocessor" +description = "An emulator and assembler for the Pedagogically Advanced Teaching Processor" readme = "README.md" [dependencies] diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 1ee2be8..90a2d9e 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -1,10 +1,13 @@ use clap::{App, Arg, ArgGroup}; pub fn args() -> clap::App<'static, 'static> { + let version = env!("CARGO_PKG_VERSION"); + let author = env!("CARGO_PKG_AUTHORS"); + let description = env!("CARGO_PKG_DESCRIPTION"); App::new("PATP Toolkit") - .version("0.1.2") - .author("Joey Harrison") - .about("An emulator and assembler for the Pedagogically Advanced Teaching Processor") + .version(version) + .author(author) + .about(description) .arg( Arg::with_name("emulate") .takes_value(true)