diff options
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -108,7 +108,7 @@ global_options.add_option('-p', '--paginate', | |||
| 108 | dest='pager', action='store_true', | 108 | dest='pager', action='store_true', |
| 109 | help='display command output in the pager') | 109 | help='display command output in the pager') |
| 110 | global_options.add_option('--no-pager', | 110 | global_options.add_option('--no-pager', |
| 111 | dest='no_pager', action='store_true', | 111 | dest='pager', action='store_false', |
| 112 | help='disable the pager') | 112 | help='disable the pager') |
| 113 | global_options.add_option('--color', | 113 | global_options.add_option('--color', |
| 114 | choices=('auto', 'always', 'never'), default=None, | 114 | choices=('auto', 'always', 'never'), default=None, |
| @@ -222,7 +222,7 @@ class _Repo(object): | |||
| 222 | file=sys.stderr) | 222 | file=sys.stderr) |
| 223 | return 1 | 223 | return 1 |
| 224 | 224 | ||
| 225 | if not gopts.no_pager and not isinstance(cmd, InteractiveCommand): | 225 | if gopts.pager and not isinstance(cmd, InteractiveCommand): |
| 226 | config = cmd.manifest.globalConfig | 226 | config = cmd.manifest.globalConfig |
| 227 | if gopts.pager: | 227 | if gopts.pager: |
| 228 | use_pager = True | 228 | use_pager = True |
