From 28cc127eb254136f0f1a0241db7d26db45d2a565 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Mon, 25 Sep 2023 16:09:51 +0200 Subject: [PATCH] Omit global switches in subcommand-specific help (#1462) * Omit global switches in subcmd-specific help * Update clic dependency --- alire.toml | 2 +- deps/clic | 2 +- src/alr/alr-commands.ads | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/alire.toml b/alire.toml index 0647d91c..32bda836 100644 --- a/alire.toml +++ b/alire.toml @@ -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" } diff --git a/deps/clic b/deps/clic index 6879b908..b40b170b 160000 --- a/deps/clic +++ b/deps/clic @@ -1 +1 @@ -Subproject commit 6879b90876a1c918b4e112f59c6db0e25b713f52 +Subproject commit b40b170b1561adfa99910c69e3897cc2ca441730 diff --git a/src/alr/alr-commands.ads b/src/alr/alr-commands.ads index 0857684a..d5e329fa 100644 --- a/src/alr/alr-commands.ads +++ b/src/alr/alr-commands.ads @@ -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 -- 2.39.5