Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Mar 21, 2024
1 parent d4b0b45 commit a92b45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hello/src/hello.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ pub fn app() {
// create a new glint instance
glint.new()
// with an app name of "hello", this is used when printing help text
|> glint.with_name("hello")
|> glint.name("hello")
// show in usage text that the current app is run as a gleam module
|> glint.as_module
// with pretty help enabled, using the built-in colours
|> glint.with_pretty_help(glint.default_pretty_help())
|> glint.pretty_help(glint.default_pretty_help())
// with group level flags
// with flag `caps` for all commands (equivalent of using glint.global_flag)
|> glint.group_flag([], caps, caps_flag())
Expand Down

0 comments on commit a92b45a

Please sign in to comment.