mirror of
https://github.com/openharmony/powermgr_battery_manager.git
synced 2026-07-01 06:42:05 -04:00
df5041b022
- Add OutputFallbackError for cJSON alloc failure (no cJSON dependency) - Replace PrintUsage + CLI_ERROR with OutputError in HandleCommand - Replace CLI_ERROR with OutputError in PrintSubcommandHelp for unknown cmd - Remove CLI_ERROR calls before OutputError in Cmd functions (dedup) - Remove unused PrintUsage function and CLI_ERROR macro Co-Authored-By: Agent Change-Id: Ia2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1 Signed-off-by: wangyantian <wangyantian@huawei.com>