We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e667c47 + 0999556 commit 28592b4Copy full SHA for 28592b4
src/main.rs
@@ -162,6 +162,10 @@ struct Cli {
162
/// inline query or @file for subscription mode; defaults to stdin when omitted
163
#[argh(positional)]
164
query: Option<String>,
165
+
166
+ /// show version information
167
+ #[argh(switch)]
168
+ version: bool,
169
}
170
171
#[tokio::main(flavor = "multi_thread", worker_threads = 2)]
@@ -180,8 +184,14 @@ async fn main() -> Result<()> {
180
184
listen,
181
185
endpoint,
182
186
query,
187
+ version,
183
188
} = argh::from_env();
189
190
+ if version {
191
+ println!("riverql {}", env!("CARGO_PKG_VERSION"));
192
+ return Ok(());
193
+ }
194
195
if server {
196
if endpoint.is_some() || query.is_some() {
197
bail!("--server does not take endpoint or query arguments");
0 commit comments