aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/args.hxx b/args.hxx
index cfbc590..0525214 100644
--- a/args.hxx
+++ b/args.hxx
@@ -1884,6 +1884,12 @@ namespace args
}
}
+ if (selectedCommand != nullptr)
+ {
+ auto childFlags = selectedCommand->GetAllFlags();
+ res.insert(res.end(), childFlags.begin(), childFlags.end());
+ }
+
if (subparser != nullptr)
{
auto childFlags = subparser->GetAllFlags();