diff --git a/github-backup.py b/github-backup.py index 8b022d1..a776918 100755 --- a/github-backup.py +++ b/github-backup.py @@ -50,14 +50,14 @@ def init_parser(): parser.add_argument("username", help="A Github username") parser.add_argument("backupdir", help="The folder where you want your backups to go") - parser.add_argument("-c","--cron", help="Use this when running from a cron job", action="store_true") - parser.add_argument("-m","--mirror", help="Create a bare mirror", action="store_true") - parser.add_argument("-g","--git", help="Pass extra arguments to git", default="", metavar="ARGS") + parser.add_argument("-c", "--cron", help="Use this when running from a cron job", action="store_true") + parser.add_argument("-m", "--mirror", help="Create a bare mirror", action="store_true") + parser.add_argument("-S", "--ssh", help="Use SSH protocol", action="store_true") + parser.add_argument("-g", "--git", help="Pass extra arguments to git", default="", metavar="ARGS") parser.add_argument("-s", "--suffix", help="Add suffix to repository directory names", default="") + parser.add_argument("-P", "--prefix", help="Add prefix to repository directory names", default="") parser.add_argument("-p", "--password", help="Authenticate with Github API") - parser.add_argument("-P","--prefix", help="Add prefix to repository directory names", default="") - parser.add_argument("-o","--organization", help="Backup Organizational repositories") - parser.add_argument("-S","--ssh", help="Use SSH protocol", action="store_true") + parser.add_argument("-o", "--organization", help="Backup Organizational repositories", metavar="ORG") return parser