diff --git a/tests/main.rs b/tests/main.rs index b6dbe3d..569c86e 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -31,6 +31,19 @@ fn test_help_argument() { } } +#[test] +fn test_db_help_argument() { + let output = Command::new(get_binary_path()) + .args(["--db", "mock.db", "help"]) + .output() + .expect("Failed to execute command"); + + assert!(output.status.success()); + let stdout = String::from_utf8(output.stdout).unwrap(); + assert!(stdout.contains("zkr --db PATH COMMAND")); + assert!(stdout.contains("Commands")); +} + #[test] fn test_invalid_arguments_error() { let output = Command::new(get_binary_path())