Skip to content

Commit 84ecd56

Browse files
committed
fixed merge errors
1 parent 565e947 commit 84ecd56

2 files changed

Lines changed: 2 additions & 22 deletions

File tree

pyang/plugins/flatten.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff 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)

test/test_flatten/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

5454
test_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 -

0 commit comments

Comments
 (0)