of_node: clarify help text and do stricter commandline parsing
To create an oftree node /path/node I tried after reading the help text
of of_node:

	of_node -c /path node

similar to the syntax of of_property. This didnt result in any output
but still failed to do what I meant.

So clarify the help text to not suggest there are two parameters and
return an usage error if still two (or more) names are passed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent de2d437 commit ff16f98a42801dbedf3ca9a2a2e88236cce9f672
@Uwe Kleine-König Uwe Kleine-König authored on 6 Aug 2018
Sascha Hauer committed on 8 Aug 2018
Showing 1 changed file
View
commands/of_node.c