---
name: "txtpbfmt"
section: "1"
platform: "linux"
package: "txtpbfmt"
version: "0.0~git20241112.20d2c9e-2+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://carta.tech/man/txtpbfmt"
---

# txtpbfmt(1)

modify text proto files preserving comments

## NAME

txtpbfmt - modify text proto files preserving comments

## DESCRIPTION

### Usage of txtpbfmt:

- **-allow\_triple\_quoted\_strings**

  Allow Python-style """ or ''' delimited strings in input.

- **-alsologtostderr**

  log to standard error as well as files

- **-dry\_run**

  Enable dry run mode.

- **-expand\_all\_children**

  Expand all children irrespective of initial state.

- **-log\_backtrace\_at** value

  when logging hits line file:N, emit a stack trace

- **-log\_dir** string

  If non-empty, write log files in this directory

- **-log\_link** string

  If non-empty, add symbolic links in this directory to the log files

- **-logbuflevel** int

  Buffer log messages logged at this level or lower (**-1** means don't buffer; 0 means buffer INFO only; ...). Has limited applicability on non-prod platforms.

- **-logtostderr**

  log to standard error instead of files

- **-preserve\_angle\_brackets**

  Preserve angle brackets instead of converting to curly braces.

- **-remove\_duplicate\_values\_for\_repeated\_fields**

  Remove lines that have the same field name and scalar value as another.

- **-skip\_all\_colons**

  Skip colons whenever possible.

- **-smart\_quotes**

  Use single quotes around strings that contain double but not single quotes.

- **-sort\_fields\_by\_field\_name**

  Sort fields by field name.

- **-sort\_repeated\_fields\_by\_content**

  Sort adjacent scalar fields of the same field name by their contents.

- **-sort\_repeated\_fields\_by\_subfield** string

  Sort adjacent message fields of the given field name by the contents of the given subfield.

- **-stderrthreshold** value

  logs at or above this threshold go to stderr (default 2)

- **-stdin\_display\_path** string

  The path to display when referring to the content read from stdin. (default "\<stdin\>")

- **-v** value

  log level for V logs

- **-vmodule** value

  comma-separated list of pattern=N settings for file-filtered logging

- **-wrap\_html\_strings**

  Wrap strings containing HTML tags. (Requires wrap\_strings\_at\_column \> 0.)

- **-wrap\_strings\_after\_newlines**

  Wrap strings after newlines.

- **-wrap\_strings\_at\_column** int

  Max columns for string field values. (0 means no wrap.)

- **-wrap\_strings\_without\_wordwrap**

  Wrap strings at the given column only.
