Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cli): argument names #37

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sparql-query> | tripsu pseudo -i index.nt -c config.yaml > pseudo.nt
curl <sparql-query> | tripsu pseudo -x index.nt -c config.yaml > pseudo.nt
```

For this flow to stream data instead of loading everything into memory, note that
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ struct IndexArgs {

/// File descriptor to read triples from.
/// Defaults to `stdin`.
#[arg(short, long, default_value = "-")]
#[arg(default_value = "-")]
input: PathBuf,
}

#[derive(Args, Debug)]
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.
Expand Down