diff --git a/Cargo.toml b/Cargo.toml index 2c27cc7..4cb1f3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 09479d6..9d1f83d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -174,8 +174,8 @@ fn migrate( { if existing_migrations != &remaining_migrations { return Err(anyhow!( - "a previous migration seems to have failed without cleaning up. Please run `reshape abort` and then run migrate again." - )); + "a previous migration seems to have failed without cleaning up. Please run `reshape abort` and then run migrate again." + )); } } diff --git a/src/main.rs b/src/main.rs index 2013f03..df933d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)]