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

Commit

Permalink
Merge pull request #29 from eitsupi/version-option
Browse files Browse the repository at this point in the history
feat: add --version option
  • Loading branch information
Tobias Brandt authored Jan 31, 2023
2 parents 88a6cb3 + c39fb36 commit fb93550
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# pq Changelog

## 0.0.15 - UNRELEASED

* Adds --version parameter (#29, @eitsupi)

## 0.0.14 - 2022-11-09

* Changes backend argument to be an enum.
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ type SourcesType = Vec<(String, String)>;

/// pq: query and transform data with PRQL
#[derive(Parser, Debug)]
#[clap(
name = env!("CARGO_PKG_NAME"),
version = env!("CARGO_PKG_VERSION"),
about = env!("CARGO_PKG_DESCRIPTION")
)]
struct Cli {
/// The file(s) to read data FROM if given
#[clap(short, long, value_parser, env = "PQ_FROM")]
Expand Down

0 comments on commit fb93550

Please sign in to comment.