]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: kernel-doc: improve argument handling
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 12:30:10 +0000 (10:30 -0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 21 Dec 2017 20:41:46 +0000 (13:41 -0700)
commit9263bc2851d024953855fc48f4f59bb0f1552eaa
treeb08cf746144815b2a8825a63175ef8b9bca7a685
parent05071a052996b0d5d387e0469a8e9d449a2c91da
scripts: kernel-doc: improve argument handling

Right now, if one uses "--rst" instead of "-rst", it just
ignore the argument and produces a man page. Change the
logic to accept both "-cmd" and "--cmd". Also, if
"cmd" doesn't exist, print the usage information and exit.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc