@@ -85,6 +85,7 @@ This page lists the ``--help`` for every ``sqlite-utils`` CLI sub-command.
8585 cog.out("::\n\n")
8686 result = CliRunner().invoke(cli.cli, [command, "--help"])
8787 output = result.output.replace("Usage: cli ", "Usage: sqlite-utils ")
88+ output = output.replace('\b', '')
8889 cog.out(textwrap.indent(output, ' '))
8990 cog.out("\n\n")
9091.. ]]]
@@ -603,9 +604,9 @@ See :ref:`cli_convert`.
603604
604605 Convert columns using Python code you supply. For example:
605606
606- sqlite-utils convert my.db mytable mycolumn \
607- '"\n".join(textwrap.wrap(value, 10))' \
608- --import=textwrap
607+ sqlite-utils convert my.db mytable mycolumn \
608+ '"\n".join(textwrap.wrap(value, 10))' \
609+ --import=textwrap
609610
610611 "value" is a variable with the column value to be converted.
611612
@@ -615,30 +616,30 @@ See :ref:`cli_convert`.
615616
616617 r.jsonsplit(value, delimiter=',', type=<class 'str'>)
617618
618- Convert a string like a,b,c into a JSON array ["a", "b", "c"]
619+ Convert a string like a,b,c into a JSON array ["a", "b", "c"]
619620
620621 r.parsedate(value, dayfirst=False, yearfirst=False, errors=None)
621622
622- Parse a date and convert it to ISO date format: yyyy-mm-dd
623-
624- - dayfirst=True: treat xx as the day in xx/yy/zz
625- - yearfirst=True: treat xx as the year in xx/yy/zz
626- - errors=r.IGNORE to ignore values that cannot be parsed
627- - errors=r.SET_NULL to set values that cannot be parsed to null
623+ Parse a date and convert it to ISO date format: yyyy-mm-dd
624+
625+ - dayfirst=True: treat xx as the day in xx/yy/zz
626+ - yearfirst=True: treat xx as the year in xx/yy/zz
627+ - errors=r.IGNORE to ignore values that cannot be parsed
628+ - errors=r.SET_NULL to set values that cannot be parsed to null
628629
629630 r.parsedatetime(value, dayfirst=False, yearfirst=False, errors=None)
630631
631- Parse a datetime and convert it to ISO datetime format: yyyy-mm-ddTHH:MM:SS
632-
633- - dayfirst=True: treat xx as the day in xx/yy/zz
634- - yearfirst=True: treat xx as the year in xx/yy/zz
635- - errors=r.IGNORE to ignore values that cannot be parsed
636- - errors=r.SET_NULL to set values that cannot be parsed to null
632+ Parse a datetime and convert it to ISO datetime format: yyyy-mm-ddTHH:MM:SS
633+
634+ - dayfirst=True: treat xx as the day in xx/yy/zz
635+ - yearfirst=True: treat xx as the year in xx/yy/zz
636+ - errors=r.IGNORE to ignore values that cannot be parsed
637+ - errors=r.SET_NULL to set values that cannot be parsed to null
637638
638639 You can use these recipes like so:
639640
640- sqlite-utils convert my.db mytable mycolumn \
641- 'r.jsonsplit(value, delimiter=":")'
641+ sqlite-utils convert my.db mytable mycolumn \
642+ 'r.jsonsplit(value, delimiter=":")'
642643
643644 Options:
644645 --import TEXT Python modules to import
0 commit comments