File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,32 +240,12 @@ def add_opts(self, optparser):
240240 "--flatten-reference" ,
241241 dest = "flatten_reference" ,
242242 action = "store_true" ,
243+ help = "Output the reference text." ),
243244 optparse .make_option (
244245 "--flatten-rootmodule" ,
245246 dest = "flatten_rootmodule" ,
246247 action = "store_true" ,
247248 help = "Output the root module name in a separate column." ),
248- optparse .make_option (
249- "--flatten-units" ,
250- dest = "flatten_units" ,
251- action = "store_true" ,
252- help = "Output the units statement." ),
253- optparse .make_option (
254- "--flatten-default" ,
255- dest = "flatten_default" ,
256- action = "store_true" ,
257- help = "Output the default value." ),
258- optparse .make_option (
259- "--flatten-mandatory" ,
260- dest = "flatten_mandatory" ,
261- action = "store_true" ,
262- help = "Output the mandatory flag." ),
263- optparse .make_option (
264- "--flatten-reference" ,
265- dest = "flatten_reference" ,
266- action = "store_true" ,
267- >> >> >> > knollpoi - add - flatten - rootmodule
268- help = "Output the reference text." ),
269249 ]
270250 g = optparser .add_option_group ("Flatten output specific options" )
271251 g .add_options (optlist )
Original file line number Diff line number Diff line change @@ -52,4 +52,4 @@ test_ref_units_mand_def:
5252 pyang -f flatten --flatten-reference --flatten-units --flatten-mandatory --flatten-default ietf-interfaces.yang ietf-yang-types.yang interfaces-ext.yang | diff benchmarks/ietf-interfaces.ref-units-mand-def.csv -
5353
5454test_rootmodule :
55- pyang -f flatten --flatten-rootmodule ietf-interfaces.yang ietf-yang-types.yang interfaces-ext.yang | diff benchmarks/ietf-interfaces.leafref .csv -
55+ pyang -f flatten --flatten-rootmodule ietf-interfaces.yang ietf-yang-types.yang interfaces-ext.yang | diff benchmarks/ietf-interfaces.rootmodule .csv -
You can’t perform that action at this time.
0 commit comments