1 Star 0 Fork 44

firstadream/lxc

forked from src-openEuler/lxc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0014-fix-tools-using-option-give-error-message.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
DriedYellowPeach 提交于 2022-09-01 20:06 +08:00 . fix tools using -? option give error
From cce266a71a8998e17abada2a7e716298c2169208 Mon Sep 17 00:00:00 2001
From: Neil.wrz<wangrunze13@huawei.com>
Date: Thu, 1 Sep 2022 05:04:56 -0700
Subject: [PATCH] fix tools using '-?' option give error message
Signed-off-by: Neil.wrz<wangrunze13@huawei.com>
---
src/lxc/tools/arguments.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lxc/tools/arguments.h b/src/lxc/tools/arguments.h
index c16d99f..80c2083 100644
--- a/src/lxc/tools/arguments.h
+++ b/src/lxc/tools/arguments.h
@@ -145,6 +145,7 @@ struct lxc_arguments {
#define LXC_COMMON_OPTIONS \
{ "name", required_argument, 0, 'n' }, \
{ "help", no_argument, 0, 'h' }, \
+ { "help", no_argument, 0, '?' }, \
{ "usage", no_argument, 0, OPT_USAGE }, \
{ "version", no_argument, 0, OPT_VERSION }, \
{ "quiet", no_argument, 0, 'q' }, \
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/firstadream/lxc.git
git@gitee.com:firstadream/lxc.git
firstadream
lxc
lxc
master

搜索帮助

371d5123 14472233 46e8bd33 14472233