1
0
mirror of https://github.com/pcvolkmer/fastq-tools.git synced 2025-09-13 05:02:53 +00:00

feat: add optional input file argument

This commit is contained in:
2025-08-11 21:00:05 +02:00
parent 8f2e74a9c2
commit d8f3d70193
3 changed files with 43 additions and 9 deletions

View File

@@ -15,9 +15,10 @@ Commands:
help Print this message or the help of the given subcommand(s)
Options:
-d, --decompress decompress input as gzip compressed data
-h, --help Print help
-V, --version Print version
-i, --input <INPUT_FILE> Input file (optional)
-d, --decompress Decompress input as gzip compressed data
-h, --help Print help
-V, --version Print version
```
### Info
@@ -33,6 +34,11 @@ To use build-in decompression of input data, use the `--decompress`/`-d` option:
```shell
cat file_fastq.gz | fastq-tools --decompress info
```
Using optional input file argument:
```shell
fastq-tools --decompress --input file_fastq.gz info
```
This will result in output like
@@ -52,4 +58,10 @@ To use build-in decompression of input data, use the `--decompress`/`-d` option:
```shell
cat file_fastq.gz | fastq-tools -d scramble | gzip > scrambled_fastq.gz
```
Using optional input file argument:
```shell
fastq-tools -d -i file_fastq.gz scramble | gzip > scrambled_fastq.gz
```