aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui/command_line.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-28 07:09:18 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-28 07:09:18 -0500
commit83d7624d1deeb73b7f0baddef88069ff27a128ab (patch)
tree25fffbc11d6edd539f0de03b98a8e2c6d66ea0e6 /libbe/ui/command_line.py
parentcfebc238cbda9b6338ec57d5c215c4cbf0246f8b (diff)
downloadbugseverywhere-83d7624d1deeb73b7f0baddef88069ff27a128ab.tar.gz
Don't run pager for the 'comment' command.
It may need access to the tty for the spawned editor.
Diffstat (limited to 'libbe/ui/command_line.py')
-rwxr-xr-xlibbe/ui/command_line.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py
index 3812789..856f810 100755
--- a/libbe/ui/command_line.py
+++ b/libbe/ui/command_line.py
@@ -253,13 +253,6 @@ def main():
print 'ERROR:\n', e
return 1
- paginate = 'auto'
- if options['paginate'] == True:
- paginate = 'always'
- if options['no-pager'] == True:
- paginate = 'never'
- libbe.ui.util.pager.run_pager(paginate)
-
command_name = args[0]
try:
module = libbe.command.get_command(command_name)
@@ -274,6 +267,17 @@ def main():
return libbe.storage.get_storage(self.repo)
command = Class(get_unconnected_storage=GUCS(options['repo']), ui=be)
parser = CmdOptionParser(command)
+
+ if command.name in ['comment']:
+ paginate = 'never'
+ else:
+ paginate = 'auto'
+ if options['paginate'] == True:
+ paginate = 'always'
+ if options['no-pager'] == True:
+ paginate = 'never'
+ libbe.ui.util.pager.run_pager(paginate)
+
try:
options,args = parser.parse_args(args[1:])
command.run(options, args)