mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 11:47:01 +05:30
cli: bring back settings
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
74e3037cb9
commit
bdb08496d2
1 changed files with 8 additions and 2 deletions
10
src/cli.rs
10
src/cli.rs
|
@ -1,7 +1,13 @@
|
|||
use clap::{crate_authors, crate_version, Clap};
|
||||
use clap::{AppSettings, crate_authors, crate_version, Clap};
|
||||
|
||||
#[derive(Clap)]
|
||||
#[clap(version = crate_version!(), author = crate_authors!())]
|
||||
#[clap(
|
||||
version = crate_version!(),
|
||||
author = crate_authors!(),
|
||||
setting = AppSettings::ColoredHelp,
|
||||
setting = AppSettings::DeriveDisplayOrder,
|
||||
setting = AppSettings::SubcommandRequiredElseHelp,
|
||||
)]
|
||||
pub(crate) struct Opts {
|
||||
#[clap(subcommand)]
|
||||
pub(crate) subcommand: SubCommand,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue