diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-11-12 13:50:01 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-11-12 13:50:01 +0100 |
commit | 133bce5f1081344ec6682ee14885c4d2a7390994 (patch) | |
tree | 1458b158e806d727a9c527e09e85744aeaf67641 | |
parent | 81774c4c1645b612ada1ecaa7cf88036f1784622 (diff) |
tool: Add note.
-rw-r--r-- | tool/Makefile | 3 | ||||
-rw-r--r-- | tool/src/sq_cli.rs | 6 | ||||
-rw-r--r-- | tool/src/sqv_cli.rs | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/tool/Makefile b/tool/Makefile index bd601b00..53df7de5 100644 --- a/tool/Makefile +++ b/tool/Makefile @@ -7,6 +7,9 @@ SQV ?= $(CARGO_TARGET_DIR)/debug/sqv all: src/sq-usage.rs src/sqv-usage.rs +.PHONY: update-usage +update-usage: src/sq-usage.rs src/sqv-usage.rs + src/sq-usage.rs: make-usage.sh $(SQ) sh make-usage.sh $(SQ) >$@ src/sqv-usage.rs: make-usage.sh $(SQV) diff --git a/tool/src/sq_cli.rs b/tool/src/sq_cli.rs index 0f96f3b2..7841e5cb 100644 --- a/tool/src/sq_cli.rs +++ b/tool/src/sq_cli.rs @@ -1,3 +1,9 @@ +//! Command-line parser for sq. +//! +//! If you change this file, please rebuild `sq`, run `make -C tool +//! update-usage`, and commit the resulting changes to +//! `tool/src/sq-usage.rs`. + use clap::{App, Arg, SubCommand, AppSettings}; pub fn build() -> App<'static, 'static> { diff --git a/tool/src/sqv_cli.rs b/tool/src/sqv_cli.rs index e3e6bbd3..53481ea5 100644 --- a/tool/src/sqv_cli.rs +++ b/tool/src/sqv_cli.rs @@ -1,3 +1,9 @@ +//! Command-line parser for sqv. +//! +//! If you change this file, please rebuild `sqv`, run `make -C tool +//! update-usage`, and commit the resulting changes to +//! `tool/src/sqv-usage.rs`. + use clap::{App, Arg, AppSettings}; // The argument parser. |