Skip to content

Commit 4cb68b8

Browse files
authored
Merge pull request #111 from openSVM/copilot/fix-110
Fix clap type mismatch in external subcommands and update version to 0.8.1
2 parents 046704a + df8a9b1 commit 4cb68b8

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ solana-validator-*.log
6767
sonic-*.log
6868
eclipse-*.log
6969
osvm-*.log
70+
audit_reports/

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "osvm"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2021"
55
license = "MIT"
66
description = "OpenSVM CLI tool for managing SVM nodes and deployments"

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ async fn handle_ai_query(
6666
let mut query_parts = vec![sub_command.to_string()];
6767

6868
// Get additional arguments from clap's external subcommand handling
69-
if let Some(external_args) = sub_matches.get_many::<String>("") {
70-
query_parts.extend(external_args.cloned());
69+
// External subcommands store arguments as OsString, not String
70+
if let Some(external_args) = sub_matches.get_many::<std::ffi::OsString>("") {
71+
query_parts.extend(external_args.map(|os_str| os_str.to_string_lossy().to_string()));
7172
}
7273

7374
// If clap doesn't provide args (fallback), parse from environment

0 commit comments

Comments
 (0)