Browse Source

Usage update for --width=0

Matthew Wang 10 years ago
parent
commit
a5b4e5ebf0
2 changed files with 4 additions and 3 deletions
  1. 2
    1
      README.rst
  2. 2
    2
      cdiff.py

+ 2
- 1
README.rst View File

@@ -69,7 +69,8 @@ Type ``cdiff -h`` to show usage::
69 69
       --version           show program's version number and exit
70 70
       -h, --help          show this help message and exit
71 71
       -s, --side-by-side  enable side-by-side mode
72
-      -w N, --width=N     set text width for side-by-side mode, default is 80
72
+      -w N, --width=N     set text width for side-by-side mode, 0 for auto
73
+                          detection, default is 80
73 74
       -l, --log           show log with changes from revision control
74 75
       -c M, --color=M     colorize mode 'auto' (default), 'always', or 'never'
75 76
 

+ 2
- 2
cdiff.py View File

@@ -725,8 +725,8 @@ def main():
725 725
         help='enable side-by-side mode')
726 726
     parser.add_option(
727 727
         '-w', '--width', type='int', default=80, metavar='N',
728
-        help='set text width for side-by-side mode. If set to "0", cdiff ' \
729
-             'will attempt to fit the terminal width.')
728
+        help='set text width for side-by-side mode, 0 for auto detection, '
729
+             'default is 80')
730 730
     parser.add_option(
731 731
         '-l', '--log', action='store_true',
732 732
         help='show log with changes from revision control')