We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0167ba6 commit 2b7e929Copy full SHA for 2b7e929
src/main.rs
@@ -67,8 +67,10 @@ async fn main() -> Result<(), ServerError> {
67
68
// --- Parse CLI Arguments ---
69
let cli = Cli::parse();
70
- let specid_str = cli.package_spec;
71
- let features = cli.features; // This is Option<Vec<String>>
+ let specid_str = cli.package_spec.trim().to_string(); // Trim whitespace
+ let features = cli.features.map(|f| {
72
+ f.into_iter().map(|s| s.trim().to_string()).collect() // Trim each feature
73
+ });
74
75
// Parse the specid string
76
let spec = PackageIdSpec::parse(&specid_str).map_err(|e| {
0 commit comments