Extract the completion tree from an argparse parser.
build_spec(
parser: argparse.ArgumentParser,
programs: Sequence[str] = DEFAULT_PROGRAMS
) -> CommandSpecFully built CLI parser.
Names stored on the root spec. Scripts register the
names passed to render_script, not these.