(List<string> extra)
| 1762 | } |
| 1763 | |
| 1764 | Command TryGetNestedCommand(List<string> extra) { |
| 1765 | if (NestedCommandSets == null) |
| 1766 | return null; |
| 1767 | |
| 1768 | var nestedCommands = NestedCommandSets.Find(c => c.Suite == extra[0]); |
| 1769 | if (nestedCommands == null) |
| 1770 | return null; |
| 1771 | |
| 1772 | var extraCopy = new List<string>(extra); |
| 1773 | extraCopy.RemoveAt(0); |
| 1774 | if (extraCopy.Count == 0) |
| 1775 | return null; |
| 1776 | |
| 1777 | var command = nestedCommands.GetCommand(extraCopy); |
| 1778 | if (command != null) { |
| 1779 | extra.Clear(); |
| 1780 | extra.AddRange(extraCopy); |
| 1781 | return command; |
| 1782 | } |
| 1783 | return null; |
| 1784 | } |
| 1785 | } |
| 1786 | |
| 1787 | internal class HelpCommand : Command { |
nothing calls this directly
no test coverage detected