From d842fea31b55556e42e93fbc899291a2f6ea7096 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Tue, 16 Jul 2024 10:38:13 +0200 Subject: [PATCH 1/3] refactor(cli): input as positional arg --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f71ff43..30fb43d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ struct IndexArgs { /// File descriptor to read triples from. /// Defaults to `stdin`. - #[arg(short, long, default_value = "-")] + #[arg(default_value = "-")] input: PathBuf, } From 8662b9c588e35e93d75cba840fe6ce81c5d3cb36 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Tue, 16 Jul 2024 10:38:29 +0200 Subject: [PATCH 2/3] refactor(cli): -x for short index opt --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 30fb43d..f5a152f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ struct IndexArgs { struct PseudoArgs { /// Index file produced by prepare-index. /// Required for pseudonymization. - #[arg(short, long)] + #[arg(short = 'x', long)] index: PathBuf, /// File descriptor to read input triples from. From b437972bc8d6b4318bf18dc2e40b444d7d3f1d42 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Tue, 16 Jul 2024 10:43:07 +0200 Subject: [PATCH 3/3] docs(tutorial): update option name --- docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 826f015..eeac84c 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -8,7 +8,7 @@ large graph and we would like to pseudonymize some of the triples. This is how the flow should look like: ```shell -curl | tripsu pseudo -i index.nt -c config.yaml > pseudo.nt +curl | tripsu pseudo -x index.nt -c config.yaml > pseudo.nt ``` For this flow to stream data instead of loading everything into memory, note that