aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2013-11-15 21:05:28 -0500
committerAdam Spiers <git@adamspiers.org>2015-01-05 16:57:08 +0000
commit80c247fd21a1e7f476d1c8ba289498e216eff3dc (patch)
tree6d8a5db901b5b211d8a40d0560069348be55d733
parent2ebcb2b6081e32e9a463519525bd432287b24520 (diff)
downloadgit-deps-80c247fd21a1e7f476d1c8ba289498e216eff3dc.tar.gz
--help: put short options first
-rwxr-xr-xgit-deps8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-deps b/git-deps
index 504a0b1..786e5db 100755
--- a/git-deps
+++ b/git-deps
@@ -303,14 +303,14 @@ class DependencyDetector:
def parse_args():
parser = argparse.ArgumentParser(description='Auto-detect inter-commit dependencies.')
- parser.add_argument('--recurse', '-r', dest='recurse', action='store_true',
+ parser.add_argument('-r', '--recurse', dest='recurse', action='store_true',
help='Follow dependencies recursively')
- parser.add_argument('--log', '-l', dest='log', action='store_true',
+ parser.add_argument('-l', '--log', dest='log', action='store_true',
help='Show commit logs for calculated dependencies')
- parser.add_argument('--context-lines', '-c', dest='context_lines', type=int,
+ parser.add_argument('-c', '--context-lines', dest='context_lines', type=int,
metavar='NUM', default=1,
help='Number of lines of diff context to use')
- parser.add_argument('--debug', '-d', dest='debug', action='store_true',
+ parser.add_argument('-d', '--debug', dest='debug', action='store_true',
help='Show debugging')
options, args = parser.parse_known_args()