From 2fe487f0e8433e3bb6b3fd733592beb0229f49f0 Mon Sep 17 00:00:00 2001 From: rongli Date: Wed, 3 Aug 2016 12:18:26 +0800 Subject: [PATCH] cli: fix wrong error info when display ifconfig status (#324) --- src/cli/README.md | 10 ++++++++++ src/cli/cli.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cli/README.md b/src/cli/README.md index 75a79ab09..97c5a12c6 100644 --- a/src/cli/README.md +++ b/src/cli/README.md @@ -236,6 +236,16 @@ Bring down the IPv6 interface. Done ``` +### ifconfig + +Show the status of the IPv6 interface. + +```bash +> ifconfig +down +Done +``` + ### ipaddr List all IPv6 addresses assigned to the Thread interface. diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index e51cf8469..9b21fb918 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -430,7 +430,7 @@ exit: void Interpreter::ProcessIfconfig(int argc, char *argv[]) { - ThreadError error = kThreadError_Parse; + ThreadError error = kThreadError_None; if (argc == 0) {