diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..170e049e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug", + "program": "${workspaceFolder}/target/debug/rad-tui", + "args": ["patch", "review", "caa79dd"], + // "cwd": "${workspaceFolder}" + "cwd": "/home/erikli/projects/radicle/dev/radicle-tui/" + } + ] +} \ No newline at end of file diff --git a/bin/main.rs b/bin/main.rs index ee4fb8b5..c58dcfb3 100644 --- a/bin/main.rs +++ b/bin/main.rs @@ -170,12 +170,10 @@ fn run(command: Command) -> Result<(), Option> { if let Some(exe) = exe.map(|s| s.to_str()) { run_other(exe, &opts.args[1..])?; + } else if opts.forward { + run_other(None, &[])?; } else { - if opts.forward { - run_other(None, &[])?; - } else { - print_help()?; - } + print_help()?; } } }