diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 64685a8..b65fb1e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,8 +25,9 @@ mod runner; mod shell; async fn async_main() -> anyhow::Result<i32> { - if std::env::args().nth(1).as_deref() == Some("--internal-cmd-runner") { - return runner::main().await; + if std::env::args().nth(1).as_deref() == Some("-c") { + return runner::run(std::env::args().nth(2).as_deref().unwrap()) + .await; } shell::main().await |