mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-29 23:09:17 +03:00
Add version and description to CLI
This commit is contained in:
parent
ef6fe64918
commit
033ac5b2f1
@ -17,7 +17,7 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
typetag = "0.1.7"
|
||||
anyhow = { version = "1.0.44", features = ["backtrace"] }
|
||||
clap = { version = "3.0.0", features = ["derive"] }
|
||||
clap = { version = "3.0.14", features = ["derive"] }
|
||||
toml = "0.5"
|
||||
version = "3.0.0"
|
||||
colored = "2"
|
||||
|
@ -12,12 +12,14 @@ use reshape::{
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(name = "Reshape", version, about)]
|
||||
struct Opts {
|
||||
#[clap(subcommand)]
|
||||
cmd: Command,
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(about)]
|
||||
enum Command {
|
||||
Migrate(MigrateOptions),
|
||||
Complete(ConnectionOptions),
|
||||
@ -28,6 +30,7 @@ enum Command {
|
||||
|
||||
#[derive(Args)]
|
||||
struct MigrateOptions {
|
||||
// Some comment
|
||||
#[clap(long, short)]
|
||||
complete: bool,
|
||||
#[clap(flatten)]
|
||||
|
Loading…
Reference in New Issue
Block a user