diff --git a/cli/app.rs b/cli/app.rs index 210a95fce..480e7e63f 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -713,7 +713,7 @@ impl Limbo { HeadersMode::Off => false, }; } - Command::Copy(args) => { + Command::Clone(args) => { if let Err(e) = self.conn.copy_db(&args.output_file) { let _ = self.writeln(e.to_string()); } diff --git a/cli/commands/args.rs b/cli/commands/args.rs index c2744b6bf..5b83c08b3 100644 --- a/cli/commands/args.rs +++ b/cli/commands/args.rs @@ -144,7 +144,7 @@ pub struct HeadersArgs { } #[derive(Debug, Clone, Args)] -pub struct CopyArgs { +pub struct CloneArgs { pub output_file: String, } diff --git a/cli/commands/mod.rs b/cli/commands/mod.rs index 08f12d63b..ce4ec920f 100644 --- a/cli/commands/mod.rs +++ b/cli/commands/mod.rs @@ -10,7 +10,7 @@ use clap::Parser; use import::ImportArgs; use crate::{ - commands::args::CopyArgs, + commands::args::CloneArgs, input::{AFTER_HELP_MSG, BEFORE_HELP_MSG}, }; @@ -89,8 +89,8 @@ pub enum Command { /// Toggle column headers on/off in list mode #[command(name = "headers", display_name = ".headers")] Headers(HeadersArgs), - #[command(name = "copy", display_name = ".copy")] - Copy(CopyArgs), + #[command(name = "clone", display_name = ".clone")] + Clone(CloneArgs), } const _HELP_TEMPLATE: &str = "{before-help}{name} diff --git a/cli/input.rs b/cli/input.rs index 7e8582c3f..b12628ebf 100644 --- a/cli/input.rs +++ b/cli/input.rs @@ -239,8 +239,8 @@ pub const AFTER_HELP_MSG: &str = r#"Usage Examples: 17. To turn off column headers in list mode: .headers off -18. To copy the open database to another file: - .copy output_file.db +18. To clone the open database to another file: + .clone output_file.db Note: - All SQL commands must end with a semicolon (;).