Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit c21a149

Browse files
committed
feat: show PRQL version in long about (in --help option)
1 parent f077012 commit c21a149

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ atty = "0.2"
2121
camino = "1.1.1"
2222
cfg-if = "1.0.0"
2323
chrono = "0.4"
24-
clap = { version = "4.1.4", features = ["derive", "env"] }
24+
clap = { version = "4.1.4", features = ["derive", "env", "string"] }
2525
datafusion = { version = "12.0.0", optional = true, features = ["default", "avro"]}
2626
dotenvy = "0.15.3"
2727
duckdb = { version = "0.5.1", features = ["bundled", "modern-full"], optional = true }

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::io::prelude::*;
1212
use std::{fs, io};
1313

1414
use clap::{Parser, ValueEnum};
15-
use prql_compiler::compile;
15+
use prql_compiler::{compile, PRQL_VERSION};
1616

1717
cfg_if::cfg_if! {
1818
if #[cfg(feature = "datafusion")] {
@@ -33,7 +33,8 @@ type SourcesType = Vec<(String, String)>;
3333
#[clap(
3434
name = env!("CARGO_PKG_NAME"),
3535
version = env!("CARGO_PKG_VERSION"),
36-
about = env!("CARGO_PKG_DESCRIPTION")
36+
about = env!("CARGO_PKG_DESCRIPTION"),
37+
long_about = format!("pq: query and transform data with PRQL version {} (https://prql-lang.org)", PRQL_VERSION.to_string())
3738
)]
3839
struct Cli {
3940
/// The file(s) to read data FROM if given

0 commit comments

Comments
 (0)