diff options
author | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-12-23 22:21:56 +0300 |
---|---|---|
committer | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-12-23 22:21:56 +0300 |
commit | 016304b1043e104d19b3a48e6ed2d8d398c63229 (patch) | |
tree | ce8d67e098b85c778d17fdc387437913cecf0939 /args.hxx | |
parent | fix warnings (diff) | |
download | args.hxx-016304b1043e104d19b3a48e6ed2d8d398c63229.tar.xz |
fix subparsers completion
Diffstat (limited to 'args.hxx')
-rw-r--r-- | args.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |