From 016304b1043e104d19b3a48e6ed2d8d398c63229 Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Sat, 23 Dec 2017 22:21:56 +0300 Subject: fix subparsers completion --- args.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'args.hxx') 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(); -- cgit v1.2.1