From 209c10aa322a2f70ee6c968afbc0cb5174cd2da3 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Sun, 12 Feb 2017 18:38:41 -0500 Subject: [PATCH] Updated usage line for subcommands --- CHANGELOG.md | 2 ++ include/CLI/App.hpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dc146ff..1ec27df0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Version 0.4 (in progress) +* Updates to help print + ## Version 0.3 * Added `->requires`, `->excludes`, and `->envname` from [Plumbum](http://plumbum.readthedocs.io/en/latest/) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 08fbac5c..e0caa8c9 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -620,6 +620,9 @@ public: pos=true; } + if(subcommands.size() > 0) + out << " [SUBCOMMANDS]"; + out << std::endl << std::endl; // Positional descriptions