@@ -37,33 +37,33 @@ struct ExportOptions {
3737};
3838
3939static void PrintUsage () {
40- std::cout
41- << " Usage: pagx export [options] \n "
42- << " \n "
43- << " Export a PAGX file to another format. \n "
44- << " \n "
45- << " Options: \n "
46- << " --input <file> Input PAGX file (required )\n "
47- << " --output <file > Output file (default: <input>.<format>) \n "
48- << " --format <format> Output format (svg, pptx; inferred from --output extension)\n "
49- << " \n "
50- << " SVG options:\n "
51- << " --svg-indent <n> Indentation spaces (default: 2, valid range: 0-16)\n "
52- << " --svg-no-xml-declaration Omit the <?xml ...?> declaration\n "
53- << " --svg-no-convert-text-to-path\n "
54- << " Keep text as <text> elements instead of <path>\n "
55- << " \n "
56- << " PPT options:\n "
57- << " --ppt-no-convert-text-to-path\n "
58- << " Keep text as native PPTX text runs instead of paths\n "
59- << " \n "
60- << " Examples:\n "
61- << " pagx export --input icon.pagx # PAGX to icon.svg\n "
62- << " pagx export --input icon.pagx --output out.svg # PAGX to out.svg\n "
63- << " pagx export --input icon.pagx --output out.pptx # PAGX to out.pptx\n "
64- << " pagx export --format svg --input icon.pagx # force SVG output format\n "
65- << " pagx export --format pptx --input icon.pagx # force PPTX output format\n "
66- << " pagx export --input icon.pagx --svg-indent 4 # 4-space indent\n " ;
40+ std::cout << " Usage: pagx export [options] \n "
41+ << " \n "
42+ << " Export a PAGX file to another format. \n "
43+ << " \n "
44+ << " Options: \n "
45+ << " --input <file> Input PAGX file (required) \n "
46+ << " --output <file> Output file (default: <input>.<format> )\n "
47+ << " --format <format > Output format (svg, pptx; inferred from --output "
48+ " extension)\n "
49+ << " \n "
50+ << " SVG options:\n "
51+ << " --svg-indent <n> Indentation spaces (default: 2, valid range: 0-16)\n "
52+ << " --svg-no-xml-declaration Omit the <?xml ...?> declaration\n "
53+ << " --svg-no-convert-text-to-path\n "
54+ << " Keep text as <text> elements instead of <path>\n "
55+ << " \n "
56+ << " PPT options:\n "
57+ << " --ppt-no-convert-text-to-path\n "
58+ << " Keep text as native PPTX text runs instead of paths\n "
59+ << " \n "
60+ << " Examples:\n "
61+ << " pagx export --input icon.pagx # PAGX to icon.svg\n "
62+ << " pagx export --input icon.pagx --output out.svg # PAGX to out.svg\n "
63+ << " pagx export --input icon.pagx --output out.pptx # PAGX to out.pptx\n "
64+ << " pagx export --format svg --input icon.pagx # force SVG output format\n "
65+ << " pagx export --format pptx --input icon.pagx # force PPTX output format\n "
66+ << " pagx export --input icon.pagx --svg-indent 4 # 4-space indent\n " ;
6767}
6868
6969static int ParseOptions (int argc, char * argv[], ExportOptions* options) {
0 commit comments