Skip to content

Commit adb4f5b

Browse files
committed
📝 add CLI description
1 parent 4d2cd81 commit adb4f5b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Masanori Ueno <masanori0213@gmail.com>"]
55
license = "GPL-3.0"
66
edition = "2021"
77
repository = "https://github.com/masan4444/phpup"
8-
description = "Fast and Simple PHP version manager"
8+
description = "Cross-Platform PHP version manager"
99
keywords = ["php", "version", "manager"]
1010
categories = ["command-line-utilities", "development-tools"]
1111

src/cli.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ use crate::commands::{self, Command};
22
use crate::config::Config;
33

44
#[derive(clap::Parser, Debug)]
5-
#[clap(name = "PHP-UP", bin_name = "phpup")]
5+
#[clap(
6+
name = env!("CARGO_PKG_NAME"),
7+
version = env!("CARGO_PKG_VERSION"),
8+
bin_name = "phpup",
9+
about = env!("CARGO_PKG_DESCRIPTION")
10+
)]
611
pub struct Cli {
712
#[clap(flatten)]
813
pub config: Config,

0 commit comments

Comments
 (0)