Skip to content

Conversation

@andreas-rot
Copy link
Collaborator

Same simple cli as before, run with
cargo run -- -s <path/to/spec> -o <output/path> -p

If none are specified, values will default to -- -s exmaple/specs/basic.yaml -o /output/
and the title from the spec file

@andreas-rot andreas-rot linked an issue May 25, 2023 that may be closed by this pull request
@bird-dancer
Copy link
Member

bird-dancer commented May 25, 2023

vlt. wäre es besser statt -p, -t oder -n für den project name bzw. titel zu nehmen, ist aber subjektiv, also wie du möchtest, du kannst auch direkt mergen, ohne es zu ändern

@andreas-rot
Copy link
Collaborator Author

Das macht clap automatisch, dann ist der Aufruf mit den langen Arguments:

cargo run -- --output-directory <output/directory> --specification-file <spec/file> --project-title title

@andreas-rot andreas-rot merged commit f30917f into main May 26, 2023
@andreas-rot andreas-rot deleted the 28-change-cli-code-using-clap-instead-of-quicli branch May 26, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change Cli code using clap instead of quicli

3 participants