diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-07 19:51:21 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-07 19:51:21 -0500 |
commit | a06030436d3940dddfba37b344f90651366d67e1 (patch) | |
tree | aa465793f2ab157257b96012fbcc421df97835eb | |
parent | b7901b5054a4bf51798098cd3aaa3eb33bb4ee5e (diff) | |
download | bugseverywhere-a06030436d3940dddfba37b344f90651366d67e1.tar.gz |
Don't run pager for commands that may need a tty (e.g. for editor)
-rwxr-xr-x | be | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -64,12 +64,13 @@ if options.version == True or options.verbose_version == True: print version.version(verbose=options.verbose_version) sys.exit(0) -paginate = 'auto' -if options.paginate == True: - paginate = 'always' -if options.no_pager== True: - paginate = 'never' -pager.run_pager(paginate) +if len(args) > 0 and args[0] not in ['comment', 'commit']: + paginate = 'auto' + if options.paginate == True: + paginate = 'always' + if options.no_pager== True: + paginate = 'never' + pager.run_pager(paginate) try: if len(args) == 0: |