Skip to content

Commit

Permalink
Omit global switches in subcommand-specific help (#1462)
Browse files Browse the repository at this point in the history
* Omit global switches in subcmd-specific help

* Update clic dependency
  • Loading branch information
mosteo authored Sep 25, 2023
1 parent c6b6474 commit d6d9a06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alire.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ windows = { ALIRE_OS = "windows" }
[[pins]]
aaa = { url = "https://github.com/mosteo/aaa", commit = "ecc38772bd4a6b469b54c62363766ea1c0e9f912" }
ada_toml = { url = "https://github.com/mosteo/ada-toml", commit = "da4e59c382ceb0de6733d571ecbab7ea4919b33d" }
clic = { url = "https://github.com/alire-project/clic", commit = "6879b90876a1c918b4e112f59c6db0e25b713f52" }
clic = { url = "https://github.com/alire-project/clic", commit = "b40b170b1561adfa99910c69e3897cc2ca441730" }
dirty_booleans = { url = "https://github.com/mosteo/dirty_booleans", branch = "main" }
diskflags = { url = "https://github.com/mosteo/diskflags", branch = "main" }
gnatcoll = { url = "https://github.com/alire-project/gnatcoll-core.git", commit = "4e663b87a028252e7e074f054f8f453661397166" }
Expand Down
2 changes: 1 addition & 1 deletion deps/clic
3 changes: 2 additions & 1 deletion src/alr/alr-commands.ads
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ private
TTY_Description => Alire.TTY.Description,
TTY_Version => Alire.TTY.Version,
TTY_Underline => Alire.TTY.Underline,
TTY_Emph => Alire.TTY.Emph);
TTY_Emph => Alire.TTY.Emph,
Global_Options_In_Subcommand_Help => False);

Unset : constant String := "unset";
-- Canary for when a string switch is given without value
Expand Down

0 comments on commit d6d9a06

Please sign in to comment.