aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-05-16 09:40:18 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-05-16 09:40:18 -0700
commitb366d0b32de20ede0581678123d33a0c044175c9 (patch)
tree087b159a977382580e8026027f35de9b729b3402
parentfix py3 compatibility issues in eshowkw. (diff)
downloadgentoolkit-b366d0b32de20ede0581678123d33a0c044175c9.tar.gz
gentoolkit-b366d0b32de20ede0581678123d33a0c044175c9.tar.bz2
gentoolkit-b366d0b32de20ede0581678123d33a0c044175c9.zip
add CONFIG['termWidth'] setting to the no-pipe option to effectively turn off textwraping.
This fixes issues with scripts parsing output.
-rw-r--r--pym/gentoolkit/equery/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py
index e25ec54..0d24222 100644
--- a/pym/gentoolkit/equery/__init__.py
+++ b/pym/gentoolkit/equery/__init__.py
@@ -275,6 +275,7 @@ def parse_global_options(global_opts, args):
pp.output.nocolor()
elif opt in ('-N', '--no-pipe'):
CONFIG['piping'] = False
+ CONFIG['termWidth'] = 400
elif opt in ('-V', '--version'):
print_version()
sys.exit(0)