Skip to content

Commit 0436538

Browse files
authored
Merge pull request #85 from AgenticHighway/dev
added successful handle for --help
2 parents 565f9ff + 9588095 commit 0436538

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/kelvin-tui/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ fn parse_args() -> Result<CliConfig, String> {
4747

4848
#[tokio::main]
4949
async fn main() {
50+
if env::args().any(|a| a == "--help" || a == "-h") {
51+
println!("Usage: kelvin-tui [--gateway-url <url>] [--auth-token <token>] [--session <id>]");
52+
return;
53+
}
5054
match parse_args() {
5155
Ok(config) => {
5256
if let Err(e) = app::run(config).await {

0 commit comments

Comments
 (0)