From 73210491b3317e98d5e14ea70ff4182e87590f2c Mon Sep 17 00:00:00 2001 From: Yan Wong Date: Mon, 25 May 2026 11:19:35 +0100 Subject: [PATCH 1/2] Add usage example for tszip and tsunzip I quite often want to change the filename: recording the syntax seems sensible for non-cli experts --- docs/cli.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index eabc082..1cf6ed1 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -11,6 +11,13 @@ Online help is available using the `--help` option. The `tsunzip` program is an alias for `tszip -d`. +To compress or decompress a single file to a different filename, simply pipe to a new file via stdout: + +```sh +tszip -c myfile.trees > compressed.tsz +tsunzip -c compressed.tsz > duplicate_myfile.trees +``` + ## tszip ```{argparse} From 293bf94eb1775411261587951cb18ac1cefd6ee5 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Mon, 1 Jun 2026 16:00:00 +0100 Subject: [PATCH 2/2] Update docs/cli.md --- docs/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli.md b/docs/cli.md index 1cf6ed1..f9597ae 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -11,7 +11,7 @@ Online help is available using the `--help` option. The `tsunzip` program is an alias for `tszip -d`. -To compress or decompress a single file to a different filename, simply pipe to a new file via stdout: +To compress or decompress a single file to a different filename, redirect stdout to a new file: ```sh tszip -c myfile.trees > compressed.tsz