nvram: improve argument check when program start
authorBangLang Huang <banglang.huang@foxmail.com>
Fri, 24 Feb 2017 02:52:52 +0000 (10:52 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 15:23:39 +0000 (16:23 +0100)
commit118a2ea0bcdfb3895dfdec9fe4b98be5325d6386
treeed5657d0d73c5c45583aec7bbad440cdb3dc6bf9
parentc446ee4ad42731ef99cbefee7dcc2bcab1c26566
nvram: improve argument check when program start

print help message when argument count is less
than 2.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
(cherry picked from commit c7e2a6fe923dc86bab14d94ead322a045efca4c9)
package/utils/nvram/src/cli.c