From 1a6decc0bbe9e044c6e4b5478d0524565f7611de Mon Sep 17 00:00:00 2001 From: Cyril Matthey-Doret Date: Tue, 16 Jul 2024 17:24:33 +0200 Subject: [PATCH] refactor(cli): argument names (#37) --- docs/tutorial.md | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/src/main.rs b/src/main.rs index f71ff43..f5a152f 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, } @@ -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.