parser=argparse.ArgumentParser(description='Script for running full Gitian builds.',usage='%(prog)s [options] signer version')
parser.add_argument('-c','--commit',action='store_true',dest='commit',help='Indicate that the version argument is for a commit or branch')
parser.add_argument('-p','--pull',action='store_true',dest='pull',help='Indicate that the version argument is the number of a github repository pull request')
parser.add_argument('-u','--url',dest='url',default='https://github.com/monero-project/monero',help='Specify the URL of the repository. Default is %(default)s')
@ -112,11 +106,12 @@ def main():
parser.add_argument('-m','--memory',dest='memory',default='2000',help='Memory to allocate in MiB. Default %(default)s')
parser.add_argument('-k','--kvm',action='store_true',dest='kvm',help='Use KVM instead of LXC')
parser.add_argument('-d','--docker',action='store_true',dest='docker',help='Use Docker instead of LXC')
parser.add_argument('-S','--setup',action='store_true',dest='setup',help='Set up the Gitian building environment. Uses LXC. If you want to use KVM, use the --kvm option. Only works on Debian-based systems (Ubuntu, Debian)')
parser.add_argument('-S','--setup',action='store_true',dest='setup',help='Set up the Gitian building environment. Uses LXC. If you want to use KVM, use the --kvm option. If you run this script on a non-debian based system, pass the --no-apt flag')
parser.add_argument('-D','--detach-sign',action='store_true',dest='detach_sign',help='Create the assert file for detached signing. Will not commit anything.')
parser.add_argument('-n','--no-commit',action='store_false',dest='commit_files',help='Do not commit anything to git')
parser.add_argument('signer',help='GPG signer to sign each build assert file')
parser.add_argument('version',help='Version number, commit, or branch to build.')
parser.add_argument('signer',nargs='?',help='GPG signer to sign each build assert file')
parser.add_argument('version',nargs='?',help='Version number, commit, or branch to build.')
parser.add_argument('-a','--no-apt',action='store_true',dest='no_apt',help='Indicate that apt is not installed on the system')