"usage: argparse4j [-h] [-a A] -b B (-c C | -d D) file {foo} ...%n"),
ap.formatUsage());
assertEquals(String.format(
TextHelper.LOCALE_ROOT,
"usage: argparse4j -b B (-c C | -d D) file foo [-h] hash%n"),
foosub.formatUsage());
Subparser bazsub = foosub.addSubparsers().addParser("baz");
assertEquals(String.format(
TextHelper.LOCALE_ROOT,
"usage: argparse4j -b B (-c C | -d D) file foo hash baz [-h]%n"),
bazsub.formatUsage());