Skip to content

Commit 9edc2a7

Browse files
Add q short flag for flightsql (#304)
1 parent e1dde89 commit 9edc2a7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dft -c "SELECT 1+2"
1414

1515
## FlightSQL Mode
1616

17-
Use --flightsql to run against a FlightSQL server (instead of the default local SessionContext). You can override the default host for that single command with --host
17+
Use `--flightsql` or `-q` to run against a FlightSQL server (instead of the default local SessionContext). You can override the default host for that single command with --host
1818

1919
```sh
2020
dft -f query.sql --flightsql --host "http://127.0.0.1:50052"

src/args.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ pub struct DftArgs {
5858
#[clap(long, help = "Path to the configuration file")]
5959
pub config: Option<String>,
6060

61-
#[clap(long, help = "Use the FlightSQL client defined in your config")]
61+
#[clap(
62+
long,
63+
short = 'q',
64+
help = "Use the FlightSQL client defined in your config"
65+
)]
6266
pub flightsql: bool,
6367

6468
#[clap(long, help = "Run DDL prior to executing")]

0 commit comments

Comments
 (0)