Add long-over --md flag (#2100)

This commit is contained in:
John Kerl 2026-06-24 13:58:12 -04:00 committed by GitHub
parent f178f9ee3d
commit 809d312bd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 100 additions and 15 deletions

View file

@ -609,6 +609,20 @@ var MarkdownOnlyFlagSection = FlagSection{
*pargi += 1
},
},
{
name: "--md-aligned",
altNames: []string{"--markdown-aligned"},
help: "Use markdown-tabular format for input and output data, with " +
"left-justified and padded columns. Implies --md, so you do not " +
"need to also pass --md.",
parser: func(args []string, argc int, pargi *int, options *TOptions) {
options.ReaderOptions.InputFileFormat = "markdown"
options.WriterOptions.OutputFileFormat = "markdown"
options.WriterOptions.MarkdownAlignedOutput = true
*pargi += 1
},
},
},
}
@ -1058,6 +1072,17 @@ var FileFormatFlagSection = FlagSection{
},
},
{
name: "--md",
altNames: []string{"--markdown"},
help: "Use markdown-tabular format for input and output data.",
parser: func(args []string, argc int, pargi *int, options *TOptions) {
options.ReaderOptions.InputFileFormat = "markdown"
options.WriterOptions.OutputFileFormat = "markdown"
*pargi += 1
},
},
{
name: "--odkvp",
help: "Use DKVP format for output data.",