Skip to content

Commit

Permalink
feat: fallback to usage if subcommands are empty, bump to lutgen 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Oct 10, 2024
1 parent d0d15e7 commit e2e0760
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lutgen"
version = "0.11.1"
version = "0.11.2"
documentation = "https://docs.rs/lutgen"
keywords = [
"image-processing",
Expand Down
9 changes: 5 additions & 4 deletions src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ fn concat_colors(
)]
enum Lutgen {
/// Generate and save a Hald CLUT to disk.
#[bpaf(command, short('g'))]
#[bpaf(command, short('g'), fallback_to_usage)]
Generate {
/// Path to write output to.
#[bpaf(short, long, argument("PATH"), complete_shell(ShellComp::Dir { mask: None }))]
Expand All @@ -518,7 +518,7 @@ enum Lutgen {
extra_colors: Vec<Color>,
},
/// Apply a generated or provided Hald CLUT to images.
#[bpaf(command, short('a'))]
#[bpaf(command, short('a'), fallback_to_usage)]
Apply {
/// Always save to a directory when there is only one input file.
/// (matches output behavior for multiple files)
Expand Down Expand Up @@ -547,7 +547,7 @@ enum Lutgen {
extra_colors: Vec<Color>,
},
/// Generate a patch for colors inside text files.
#[bpaf(command, short('p'))]
#[bpaf(command, short('p'), fallback_to_usage)]
Patch {
/// Write changes directly to the files.
#[bpaf(short, long)]
Expand Down Expand Up @@ -588,7 +588,8 @@ enum Lutgen {
doc.text("\n $ ");
doc.literal("lutgen palette carburetor > palette.txt");
doc
})
}),
fallback_to_usage
)]
Palette(#[bpaf(external(palette_args))] PaletteArgs),
}
Expand Down

0 comments on commit e2e0760

Please sign in to comment.