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

Commit fb93550

Browse files
author
Tobias Brandt
authored
Merge pull request #29 from eitsupi/version-option
feat: add --version option
2 parents 88a6cb3 + c39fb36 commit fb93550

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# pq Changelog
22

3+
## 0.0.15 - UNRELEASED
4+
5+
* Adds --version parameter (#29, @eitsupi)
6+
37
## 0.0.14 - 2022-11-09
48

59
* Changes backend argument to be an enum.

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ type SourcesType = Vec<(String, String)>;
3030

3131
/// pq: query and transform data with PRQL
3232
#[derive(Parser, Debug)]
33+
#[clap(
34+
name = env!("CARGO_PKG_NAME"),
35+
version = env!("CARGO_PKG_VERSION"),
36+
about = env!("CARGO_PKG_DESCRIPTION")
37+
)]
3338
struct Cli {
3439
/// The file(s) to read data FROM if given
3540
#[clap(short, long, value_parser, env = "PQ_FROM")]

0 commit comments

Comments
 (0)