ΒΆiterator_range<typename SmallPtrSet<SubCommand*,
                                    4>::iterator>
getRegisteredSubcommands()

Description

Use this to get all registered SubCommands from the provided parser. Typical usage: This interface is useful for defining subcommands in libraries and the dispatch from a single point (like in the main function).

Declared at: llvm/include/llvm/Support/CommandLine.h:1994

Returns

A range of all SubCommand pointers registered with the parser.