Procházet zdrojové kódy

Usage update for --width=0

Matthew Wang před 10 roky
rodič
revize
a5b4e5ebf0
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 2
    1
      README.rst
  2. 2
    2
      cdiff.py

+ 2
- 1
README.rst Zobrazit soubor

69
       --version           show program's version number and exit
69
       --version           show program's version number and exit
70
       -h, --help          show this help message and exit
70
       -h, --help          show this help message and exit
71
       -s, --side-by-side  enable side-by-side mode
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
       -l, --log           show log with changes from revision control
74
       -l, --log           show log with changes from revision control
74
       -c M, --color=M     colorize mode 'auto' (default), 'always', or 'never'
75
       -c M, --color=M     colorize mode 'auto' (default), 'always', or 'never'
75
 
76
 

+ 2
- 2
cdiff.py Zobrazit soubor

725
         help='enable side-by-side mode')
725
         help='enable side-by-side mode')
726
     parser.add_option(
726
     parser.add_option(
727
         '-w', '--width', type='int', default=80, metavar='N',
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
     parser.add_option(
730
     parser.add_option(
731
         '-l', '--log', action='store_true',
731
         '-l', '--log', action='store_true',
732
         help='show log with changes from revision control')
732
         help='show log with changes from revision control')