diff options
author | Adam Spiers <git@adamspiers.org> | 2013-11-15 21:05:28 -0500 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-05 16:57:08 +0000 |
commit | 80c247fd21a1e7f476d1c8ba289498e216eff3dc (patch) | |
tree | 6d8a5db901b5b211d8a40d0560069348be55d733 | |
parent | 2ebcb2b6081e32e9a463519525bd432287b24520 (diff) | |
download | git-deps-80c247fd21a1e7f476d1c8ba289498e216eff3dc.tar.gz |
--help: put short options first
-rwxr-xr-x | git-deps | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() |