Skip to content

Commit

Permalink
Add versions back to main command, remove from sub-commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 6, 2020
1 parent 4606e51 commit e509373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/plumbing/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod options {
use std::path::PathBuf;

#[derive(Debug, Clap)]
#[clap(name = "gix-plumbing", about = "The git underworld")]
#[clap(name = "gix-plumbing", about = "The git underworld", version = clap::crate_version!())]
#[clap(setting = AppSettings::SubcommandRequired)]
#[clap(setting = AppSettings::ColoredHelp)]
pub struct Args {
Expand Down Expand Up @@ -46,6 +46,7 @@ mod options {
///
/// This command can also be used to stream packs to standard input or to repair partial packs.
#[clap(setting = AppSettings::ColoredHelp)]
#[clap(setting = AppSettings::DisableVersion)]
IndexFromPack {
/// Specify how to iterate the pack, defaults to 'verify'
///
Expand Down Expand Up @@ -78,6 +79,7 @@ mod options {
},
/// Verify the integrity of a pack or index file
#[clap(setting = AppSettings::ColoredHelp)]
#[clap(setting = AppSettings::DisableVersion)]
PackExplode {
#[clap(long)]
/// Read written objects back and assert they match their source. Fail the operation otherwise.
Expand Down Expand Up @@ -116,6 +118,7 @@ mod options {
},
/// Verify the integrity of a pack or index file
#[clap(setting = AppSettings::ColoredHelp)]
#[clap(setting = AppSettings::DisableVersion)]
PackVerify {
/// output statistical information about the pack
#[clap(long, short = "s")]
Expand Down
3 changes: 2 additions & 1 deletion src/porcelain/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod options {
use clap::{AppSettings, Clap};

#[derive(Debug, Clap)]
#[clap(about = "The git")]
#[clap(about = "The rusty git", version = clap::crate_version!())]
#[clap(setting = AppSettings::SubcommandRequired)]
#[clap(setting = AppSettings::ColoredHelp)]
pub struct Args {
Expand All @@ -19,6 +19,7 @@ mod options {
/// Initialize the repository in the current directory.
#[clap(alias = "initialize")]
#[clap(setting = AppSettings::ColoredHelp)]
#[clap(setting = AppSettings::DisableVersion)]
Init,
}
}
Expand Down

0 comments on commit e509373

Please sign in to comment.