Skip to content

Commit 1ec7675

Browse files
markkimsalAJenbo
authored andcommitted
ft: add dummy stdio cli flag for compatibility with LSP wrappers
1 parent 289af94 commit 1ec7675

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ const STYLES: Styles = Styles::styled()
2020
struct Cli {
2121
#[command(subcommand)]
2222
command: Option<Command>,
23+
24+
// this allows LSP wrapper programs to pass a --stdio flag.
25+
// since this is the only supported communication at this time, this
26+
// flag can be ignored
27+
#[arg(long, global = true)]
28+
stdio: bool,
2329
}
2430

2531
#[derive(clap::Subcommand)]

0 commit comments

Comments
 (0)