@@ -38,6 +38,7 @@ def print_help(self):
3838def get_parser (program_name , description ):
3939 # By default suppress these help strings and only enable them in the specific programs.
4040 yaml_output_help , yaml_roundtrip_help , width_help , indentless_help , grammar_help = [argparse .SUPPRESS ] * 5
41+ explicit_start_help , explicit_end_help = [argparse .SUPPRESS ] * 2
4142 xml_output_help , xml_item_depth_help , xml_dtd_help , xml_root_help , xml_force_list_help = [argparse .SUPPRESS ] * 5
4243 toml_output_help = argparse .SUPPRESS
4344
@@ -57,6 +58,8 @@ def get_parser(program_name, description):
5758 "to 1.2 in a future version). Setting this to 1.2 will cause strings like 'on' and 'no' to be "
5859 "emitted unquoted."
5960 )
61+ explicit_start_help = 'When using --yaml-output, always emit explicit document start ("---")'
62+ explicit_end_help = 'When using --yaml-output, always emit explicit document end ("...")'
6063 elif program_name == "xq" :
6164 current_language = "XML"
6265 xml_output_help = "Transcode jq JSON output back into XML and emit it"
@@ -99,8 +102,8 @@ def get_parser(program_name, description):
99102 )
100103 parser .add_argument ("--width" , "-w" , type = int , help = width_help )
101104 parser .add_argument ("--indentless-lists" , "--indentless" , action = "store_true" , help = indentless_help )
102- parser .add_argument ("--explicit-start" , action = "store_true" , help = argparse . SUPPRESS )
103- parser .add_argument ("--explicit-end" , action = "store_true" , help = argparse . SUPPRESS )
105+ parser .add_argument ("--explicit-start" , action = "store_true" , help = explicit_start_help )
106+ parser .add_argument ("--explicit-end" , action = "store_true" , help = explicit_end_help )
104107 parser .add_argument ("--no-expand-aliases" , action = "store_false" , dest = "expand_aliases" , help = argparse .SUPPRESS )
105108 parser .add_argument ("--max-expansion-factor" , type = int , default = 1024 , help = argparse .SUPPRESS )
106109 parser .add_argument (
0 commit comments