[projects/git-slug: 39/170] Sort options
glen
glen at pld-linux.org
Mon Sep 21 21:42:05 CEST 2015
commit a733aad22988fc213fb9e253a5b5b91b6f69c3b3
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Wed Sep 21 16:28:07 2011 +0100
Sort options
slug.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/slug.py b/slug.py
index 084539b..8cda7b4 100755
--- a/slug.py
+++ b/slug.py
@@ -167,13 +167,13 @@ subparsers = parser.add_subparsers(help='[-h] [options]')
update = subparsers.add_parser('update', help='fetch repositories', parents=[common_fetchoptions],
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
update.add_argument('-b', '--branch', help='branch to fetch', action=DelAppend, default=['master'])
-update.add_argument('-P', '--prune', help='prune git repositories that do no exist upstream',
- action='store_true')
update.add_argument('--depth', help='depth of fetch', default=0)
newpkgsopt = update.add_mutually_exclusive_group()
newpkgsopt.add_argument('-n', '--newpkgs', help='download packages that do not exist on local side',
action='store_true')
newpkgsopt.add_argument('-nn', '--nonewpkgs', help='do not download new packages', dest='newpkgs', action='store_false')
+update.add_argument('-P', '--prune', help='prune git repositories that do no exist upstream',
+ action='store_true')
update.set_defaults(func=fetch_packages, omitexisting=False)
init = subparsers.add_parser('init', help='init new repository', parents=[common_options],
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list