From 9c3eb766a84433745b2bbf166acb152da1851203 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:08:33 -0400 Subject: [PATCH] docs: Rephase csvlook\'s --no-inference --- csvkit/utilities/csvlook.py | 2 +- docs/scripts/csvlook.rst | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/csvkit/utilities/csvlook.py b/csvkit/utilities/csvlook.py index cc6a3a6e8..aaaf321de 100644 --- a/csvkit/utilities/csvlook.py +++ b/csvkit/utilities/csvlook.py @@ -24,7 +24,7 @@ def add_arguments(self): 'Specify "0" to disable sniffing entirely, or "-1" to sniff the entire file.') self.argparser.add_argument( '-I', '--no-inference', dest='no_inference', action='store_true', - help='Disable type inference when parsing the input. Disable reformatting of values.') + help='Disable type inference when parsing the input. This disables the reformatting of values.') def main(self): if self.additional_input_expected(): diff --git a/docs/scripts/csvlook.rst b/docs/scripts/csvlook.rst index 42bed86f1..00012f280 100644 --- a/docs/scripts/csvlook.rst +++ b/docs/scripts/csvlook.rst @@ -36,9 +36,10 @@ Renders a CSV to the command line in a Markdown-compatible, fixed-width format: remainder will be replaced with ellipsis. -y SNIFF_LIMIT, --snifflimit SNIFF_LIMIT Limit CSV dialect sniffing to the specified number of - bytes. Specify "0" to disable sniffing. - -I, --no-inference Disable type inference when parsing the input. - Disable reformatting of values. + bytes. Specify "0" to disable sniffing entirely, or + "-1" to sniff the entire file. + -I, --no-inference Disable type inference when parsing the input. This + disables the reformatting of values. If a table is too wide to display properly try piping the output to ``less -S`` or truncating it using :doc:`csvcut`.