Copied from argparse==3.9 the BooleanOptionalAction, to allow one to have boolean (optional) flags on the cli. Also enforced black formatting.