aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
authorPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-12-23 22:21:56 +0300
committerPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-12-23 22:21:56 +0300
commit016304b1043e104d19b3a48e6ed2d8d398c63229 (patch)
treece8d67e098b85c778d17fdc387437913cecf0939 /args.hxx
parentfix warnings (diff)
downloadargs.hxx-016304b1043e104d19b3a48e6ed2d8d398c63229.tar.xz
fix subparsers completion
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();