From 3d673da7da97058f6e4a200d924dbbdcfeb63678 Mon Sep 17 00:00:00 2001
From: haozi007 <liuhao27@huawei.com>
Date: Thu, 26 Aug 2021 13:50:41 +0100
Subject: [PATCH] add help for new arguments

Signed-off-by: haozi007 <liuhao27@huawei.com>
---
 src/lxc/tools/lxc_attach.c | 10 ++++++++--
 src/lxc/tools/lxc_start.c  | 16 ++++++++++++++--
 2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/src/lxc/tools/lxc_attach.c b/src/lxc/tools/lxc_attach.c
index 4d69e944..9931b39f 100644
--- a/src/lxc/tools/lxc_attach.c
+++ b/src/lxc/tools/lxc_attach.c
@@ -144,9 +144,15 @@ Options :\n\
 "
 #else
 "\
-  --user            User ID (format: UID[:GID])\n\
   -w, --workdir     Working directory inside the container.\n\
-  --timeout         Timeout in seconds (default: 0)\n\
+  -u, --user        User ID (format: UID[:GID])\n\
+      --in-fifo     Stdin fifo path\n\
+      --out-fifo    Stdout fifo path\n\
+      --err-fifo    Stderr fifo path\n\
+      --suffi       ID for mutli-attach on one container\n\
+      --timeout     Timeout in seconds (default: 0)\n\
+      --disable-pty Disable pty for attach\n\
+      --open-stdin  Open stdin for attach\n\
 "
 #endif
 ,
diff --git a/src/lxc/tools/lxc_start.c b/src/lxc/tools/lxc_start.c
index 4f2c8afa..3ef59610 100644
--- a/src/lxc/tools/lxc_start.c
+++ b/src/lxc/tools/lxc_start.c
@@ -62,7 +62,6 @@ static const struct option my_longopts[] = {
 	{"start-timeout", required_argument, 0, OPT_START_TIMEOUT},
 	{"disable-pty", no_argument, 0, OPT_DISABLE_PTY},
 	{"open-stdin", no_argument, 0, OPT_OPEN_STDIN},
-	{"start-timeout", required_argument, 0, OPT_START_TIMEOUT},
 #endif
 	LXC_COMMON_OPTIONS
 };
@@ -86,7 +85,20 @@ Options :\n\
                          Note: --daemon implies --close-all-fds\n\
   -s, --define KEY=VAL   Assign VAL to configuration variable KEY\n\
       --share-[net|ipc|uts|pid]=NAME Share a namespace with another container or pid\n\
-",
+"
+#ifdef HAVE_ISULAD
+"\
+      --in-fifo           Stdin fifo path\n\
+      --out-fifo          Stdout fifo path\n\
+      --err-fifo          Stderr fifo path\n\
+      --container-pidfile File path for container pid\n\
+      --exit-fifo         Fifo path to save exit code\n\
+      --start-timeout     Timeout for start container\n\
+      --disable-pty       Disable pty for attach\n\
+      --open-stdin        Open stdin for attach\n\
+"
+#endif
+,
 	.options      = my_longopts,
 	.parser       = my_parser,
 	.checker      = NULL,
-- 
2.20.1

