in rules_jvm_export/jvm_export/support/deploy.py [0:0]
def _parse_args():
class Formatter(
argparse.ArgumentDefaultsHelpFormatter, argparse.RawTextHelpFormatter
):
pass
parser = argparse.ArgumentParser(description=USAGE_STR, formatter_class=Formatter)
parser.add_argument("command", choices=["release", "snapshot"])
parser.add_argument(
"--gpg", action="store_true", default=False, help="Sign artifact using gpg"
)
parser.add_argument(
"--netrc",
action="store_true",
default=False,
help="Use .netrc for authentication",
)
parser.add_argument(
"--local",
action="store_true",
default=False,
help="Publish to local M2 repo (~/.m2/repository/).",
)
parser.add_argument(
"--publish_to",
help="Specify repository to publish to.",
)
return parser.parse_args()