This commit is contained in:
Rehaan Ahmad
2026-06-08 21:34:08 -07:00
parent 604c2b7ad2
commit 2e97dceffc
3 changed files with 7 additions and 3 deletions
Generated
+1 -1
View File
@@ -675,7 +675,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]]
name = "openresearch-cli"
version = "0.1.7"
version = "0.1.8"
dependencies = [
"anyhow",
"clap",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "openresearch-cli"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
description = "OpenResearch CLI (orx) — Rust port"
repository = "https://github.com/alphaXiv/openresearch-cli"
+5 -1
View File
@@ -319,7 +319,11 @@ async fn desc(
/// `orx exp run <expId> …` — launch a run on a new instance or existing sandbox.
async fn launch(creds: &crate::config::Credentials, args: ExpRunArgs) -> Result<()> {
// Resolve the target: exactly one of --sandbox, --gpu, or --cpu.
let selectors = [args.sandbox.is_some(), args.gpu.is_some(), args.cpu.is_some()];
let selectors = [
args.sandbox.is_some(),
args.gpu.is_some(),
args.cpu.is_some(),
];
let chosen = selectors.iter().filter(|x| **x).count();
if chosen > 1 {
return Err(anyhow!("Pass exactly one of --sandbox, --gpu, or --cpu."));