OSDN Git Service

[Support][CommandLine] Display subcommands in help when there are less than 3
authorAlex Lorenz <arphaman@gmail.com>
Wed, 12 Oct 2016 10:04:35 +0000 (10:04 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 12 Oct 2016 10:04:35 +0000 (10:04 +0000)
commit196e7047f40633959f8ee87cf8494fa156905488
treec59ac33a68b162ebc88e7a4207d9e35563e6d563
parentc45984be61b5f9bbe7afb3a255764b30a46de66c
[Support][CommandLine] Display subcommands in help when there are less than 3
subcommands

This commit fixes a bug where the help output doesn't display subcommands when
a tool has less than 3 subcommands.

This change doesn't include a corresponding unittest as there is no viable way
to provide a unittest for it.

Differential Revision: https://reviews.llvm.org/D25463

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp