Browse Source

[cmdline] Generate command option help text automatically

Generate the command option help text automatically from the list of
defined options.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
43eba2f555

+ 1
- 1
src/arch/i386/hci/commands/pxe_cmd.c View File

78
 
78
 
79
 /** "stoppxe" command descriptor */
79
 /** "stoppxe" command descriptor */
80
 static struct command_descriptor stoppxe_cmd =
80
 static struct command_descriptor stoppxe_cmd =
81
-	COMMAND_DESC ( struct stoppxe_options, stoppxe_opts, 0, 0, "" );
81
+	COMMAND_DESC ( struct stoppxe_options, stoppxe_opts, 0, 0, NULL );
82
 
82
 
83
 /**
83
 /**
84
  * The "stoppxe" command
84
  * The "stoppxe" command

+ 1
- 2
src/arch/x86/hci/commands/cpuid_cmd.c View File

54
 
54
 
55
 /** "cpuid" command descriptor */
55
 /** "cpuid" command descriptor */
56
 static struct command_descriptor cpuid_cmd =
56
 static struct command_descriptor cpuid_cmd =
57
-	COMMAND_DESC ( struct cpuid_options, cpuid_opts, 1, 1,
58
-		       "[--ext] [--ecx] <bit>" );
57
+	COMMAND_DESC ( struct cpuid_options, cpuid_opts, 1, 1, "<bit>" );
59
 
58
 
60
 /**
59
 /**
61
  * The "cpuid" command
60
  * The "cpuid" command

+ 1
- 1
src/core/exec.c View File

397
 /** "echo" command descriptor */
397
 /** "echo" command descriptor */
398
 static struct command_descriptor echo_cmd =
398
 static struct command_descriptor echo_cmd =
399
 	COMMAND_DESC ( struct echo_options, echo_opts, 0, MAX_ARGUMENTS,
399
 	COMMAND_DESC ( struct echo_options, echo_opts, 0, MAX_ARGUMENTS,
400
-		       "[-n] [...]" );
400
+		       "[...]" );
401
 
401
 
402
 /**
402
 /**
403
  * "echo" command
403
  * "echo" command

+ 19
- 2
src/core/parseopt.c View File

326
  * @v argv		Argument list
326
  * @v argv		Argument list
327
  */
327
  */
328
 void print_usage ( struct command_descriptor *cmd, char **argv ) {
328
 void print_usage ( struct command_descriptor *cmd, char **argv ) {
329
-	printf ( "Usage:\n\n  %s %s\n\nSee http://ipxe.org/cmd/%s for further "
330
-		 "information\n", argv[0], cmd->usage, argv[0] );
329
+	struct option_descriptor *option;
330
+	unsigned int i;
331
+	int is_optional;
332
+
333
+	printf ( "Usage:\n\n  %s", argv[0] );
334
+	for ( i = 0 ; i < cmd->num_options ; i++ ) {
335
+		option = &cmd->options[i];
336
+		printf ( " [-%c|--%s", option->shortopt, option->longopt );
337
+		if ( option->has_arg ) {
338
+			is_optional = ( option->has_arg == optional_argument );
339
+			printf ( " %s<%s>%s", ( is_optional ? "[" : "" ),
340
+				 option->longopt, ( is_optional ? "]" : "" ) );
341
+		}
342
+		printf ( "]" );
343
+	}
344
+	if ( cmd->usage )
345
+		printf ( " %s", cmd->usage );
346
+	printf ( "\n\nSee http://ipxe.org/cmd/%s for further information\n",
347
+		 argv[0] );
331
 }
348
 }
332
 
349
 
333
 /**
350
 /**

+ 2
- 3
src/hci/commands/fcmgmt_cmd.c View File

106
 
106
 
107
 /** "fcstat" command descriptor */
107
 /** "fcstat" command descriptor */
108
 static struct command_descriptor fcstat_cmd =
108
 static struct command_descriptor fcstat_cmd =
109
-	COMMAND_DESC ( struct fcstat_options, fcstat_opts, 0, 0, "" );
109
+	COMMAND_DESC ( struct fcstat_options, fcstat_opts, 0, 0, NULL );
110
 
110
 
111
 /**
111
 /**
112
  * The "fcstat" command
112
  * The "fcstat" command
151
 
151
 
152
 /** "fcels" command descriptor */
152
 /** "fcels" command descriptor */
153
 static struct command_descriptor fcels_cmd =
153
 static struct command_descriptor fcels_cmd =
154
-	COMMAND_DESC ( struct fcels_options, fcels_opts, 1, 1,
155
-		       "[--port <port>] [--id <peer port id>] <request>" );
154
+	COMMAND_DESC ( struct fcels_options, fcels_opts, 1, 1, "<request>" );
156
 
155
 
157
 /**
156
 /**
158
  * The "fcels" command
157
  * The "fcels" command

+ 1
- 3
src/hci/commands/ifmgmt_cmd.c View File

226
 /** "ifconf" command descriptor */
226
 /** "ifconf" command descriptor */
227
 static struct ifcommon_command_descriptor ifconf_cmd =
227
 static struct ifcommon_command_descriptor ifconf_cmd =
228
 	IFCOMMON_COMMAND_DESC ( struct ifconf_options, ifconf_opts,
228
 	IFCOMMON_COMMAND_DESC ( struct ifconf_options, ifconf_opts,
229
-				0, MAX_ARGUMENTS,
230
-				"[--configurator <configurator>] "
231
-				"[<interface>...]",
229
+				0, MAX_ARGUMENTS, "[<interface>...]",
232
 				ifconf_payload, 1 );
230
 				ifconf_payload, 1 );
233
 
231
 
234
 /**
232
 /**

+ 30
- 23
src/hci/commands/image_cmd.c View File

47
 };
47
 };
48
 
48
 
49
 /** "img{single}" option list */
49
 /** "img{single}" option list */
50
-static struct option_descriptor imgsingle_opts[] = {
51
-	OPTION_DESC ( "name", 'n', required_argument,
52
-		      struct imgsingle_options, name, parse_string ),
53
-	OPTION_DESC ( "replace", 'r', no_argument,
54
-		      struct imgsingle_options, replace, parse_flag ),
55
-	OPTION_DESC ( "autofree", 'a', no_argument,
56
-		      struct imgsingle_options, autofree, parse_flag ),
50
+static union {
51
+	/* "imgexec" takes all three options */
52
+	struct option_descriptor imgexec[3];
53
+	/* Other "img{single}" commands take only --name and --autofree */
54
+	struct option_descriptor imgsingle[2];
55
+} opts = {
56
+	.imgexec = {
57
+		OPTION_DESC ( "name", 'n', required_argument,
58
+			      struct imgsingle_options, name, parse_string ),
59
+		OPTION_DESC ( "autofree", 'a', no_argument,
60
+			      struct imgsingle_options, autofree, parse_flag ),
61
+		OPTION_DESC ( "replace", 'r', no_argument,
62
+			      struct imgsingle_options, replace, parse_flag ),
63
+	},
57
 };
64
 };
58
 
65
 
59
-/** "img{single}" command descriptor */
60
-static struct command_descriptor imgsingle_cmd =
61
-	COMMAND_DESC ( struct imgsingle_options, imgsingle_opts,
62
-		       1, MAX_ARGUMENTS,
63
-		       "[--name <name>] [--autofree] "
64
-		       "<uri|image> [<arguments>...]" );
65
-
66
 /** An "img{single}" family command descriptor */
66
 /** An "img{single}" family command descriptor */
67
 struct imgsingle_descriptor {
67
 struct imgsingle_descriptor {
68
 	/** Command descriptor */
68
 	/** Command descriptor */
174
 
174
 
175
 /** "imgfetch" command descriptor */
175
 /** "imgfetch" command descriptor */
176
 static struct command_descriptor imgfetch_cmd =
176
 static struct command_descriptor imgfetch_cmd =
177
-	COMMAND_DESC ( struct imgsingle_options, imgsingle_opts,
178
-		       1, MAX_ARGUMENTS,
179
-		       "[--name <name>] [--autofree] <uri> [<arguments>...]" );
177
+	COMMAND_DESC ( struct imgsingle_options, opts.imgsingle,
178
+		       1, MAX_ARGUMENTS, "<uri> [<arguments>...]" );
180
 
179
 
181
 /** "imgfetch" family command descriptor */
180
 /** "imgfetch" family command descriptor */
182
 struct imgsingle_descriptor imgfetch_desc = {
181
 struct imgsingle_descriptor imgfetch_desc = {
207
 	return image_select ( image );
206
 	return image_select ( image );
208
 }
207
 }
209
 
208
 
209
+/** "imgselect" command descriptor */
210
+static struct command_descriptor imgselect_cmd =
211
+	COMMAND_DESC ( struct imgsingle_options, opts.imgsingle,
212
+		       1, MAX_ARGUMENTS, "<uri|image> [<arguments>...]" );
213
+
210
 /** "imgselect" family command descriptor */
214
 /** "imgselect" family command descriptor */
211
 struct imgsingle_descriptor imgselect_desc = {
215
 struct imgsingle_descriptor imgselect_desc = {
212
-	.cmd = &imgsingle_cmd,
216
+	.cmd = &imgselect_cmd,
213
 	.acquire = imgacquire,
217
 	.acquire = imgacquire,
214
 	.action = imgselect,
218
 	.action = imgselect,
215
 	.verb = "select",
219
 	.verb = "select",
228
 
232
 
229
 /** "imgexec" command descriptor */
233
 /** "imgexec" command descriptor */
230
 static struct command_descriptor imgexec_cmd =
234
 static struct command_descriptor imgexec_cmd =
231
-	COMMAND_DESC ( struct imgsingle_options, imgsingle_opts,
232
-		       0, MAX_ARGUMENTS,
233
-		       "[--autofree] [--replace] "
234
-		       "[<uri|image> [<arguments>...]]" );
235
+	COMMAND_DESC ( struct imgsingle_options, opts.imgexec,
236
+		       0, MAX_ARGUMENTS, "[<uri|image> [<arguments>...]]" );
235
 
237
 
236
 /**
238
 /**
237
  * "imgexec" command action
239
  * "imgexec" command action
282
 	return imgsingle_exec ( argc, argv, &imgexec_desc );
284
 	return imgsingle_exec ( argc, argv, &imgexec_desc );
283
 }
285
 }
284
 
286
 
287
+/** "imgargs" command descriptor */
288
+static struct command_descriptor imgargs_cmd =
289
+	COMMAND_DESC ( struct imgsingle_options, opts.imgsingle,
290
+		       1, MAX_ARGUMENTS, "<uri|image> [<arguments>...]" );
291
+
285
 /** "imgargs" family command descriptor */
292
 /** "imgargs" family command descriptor */
286
 struct imgsingle_descriptor imgargs_desc = {
293
 struct imgsingle_descriptor imgargs_desc = {
287
-	.cmd = &imgsingle_cmd,
294
+	.cmd = &imgargs_cmd,
288
 	.acquire = imgacquire,
295
 	.acquire = imgacquire,
289
 	.preaction = image_clear_cmdline,
296
 	.preaction = image_clear_cmdline,
290
 };
297
 };

+ 2
- 4
src/hci/commands/image_trust_cmd.c View File

52
 
52
 
53
 /** "imgtrust" command descriptor */
53
 /** "imgtrust" command descriptor */
54
 static struct command_descriptor imgtrust_cmd =
54
 static struct command_descriptor imgtrust_cmd =
55
-	COMMAND_DESC ( struct imgtrust_options, imgtrust_opts, 0, 0,
56
-		       "[--allow] [--permanent]" );
55
+	COMMAND_DESC ( struct imgtrust_options, imgtrust_opts, 0, 0, NULL );
57
 
56
 
58
 /**
57
 /**
59
  * The "imgtrust" command
58
  * The "imgtrust" command
100
 /** "imgverify" command descriptor */
99
 /** "imgverify" command descriptor */
101
 static struct command_descriptor imgverify_cmd =
100
 static struct command_descriptor imgverify_cmd =
102
 	COMMAND_DESC ( struct imgverify_options, imgverify_opts, 2, 2,
101
 	COMMAND_DESC ( struct imgverify_options, imgverify_opts, 2, 2,
103
-		       "[--signer <signer>] [--keep] <uri|image> "
104
-		       "<signature uri|image>" );
102
+		       "<uri|image> <signature uri|image>" );
105
 
103
 
106
 /**
104
 /**
107
  * The "imgverify" command
105
  * The "imgverify" command

+ 1
- 1
src/hci/commands/login_cmd.c View File

39
 
39
 
40
 /** "login" command descriptor */
40
 /** "login" command descriptor */
41
 static struct command_descriptor login_cmd =
41
 static struct command_descriptor login_cmd =
42
-	COMMAND_DESC ( struct login_options, login_opts, 0, 0, "" );
42
+	COMMAND_DESC ( struct login_options, login_opts, 0, 0, NULL );
43
 
43
 
44
 /**
44
 /**
45
  * "login" command
45
  * "login" command

+ 1
- 2
src/hci/commands/lotest_cmd.c View File

50
 /** "lotest" command descriptor */
50
 /** "lotest" command descriptor */
51
 static struct command_descriptor lotest_cmd =
51
 static struct command_descriptor lotest_cmd =
52
 	COMMAND_DESC ( struct lotest_options, lotest_opts, 2, 2,
52
 	COMMAND_DESC ( struct lotest_options, lotest_opts, 2, 2,
53
-		       "[--mtu <mtu>] <sending interface> "
54
-		       "<receiving interface>" );
53
+		       "<sending interface> <receiving interface>" );
55
 
54
 
56
 /**
55
 /**
57
  * "lotest" command
56
  * "lotest" command

+ 3
- 6
src/hci/commands/menu_cmd.c View File

57
 /** "menu" command descriptor */
57
 /** "menu" command descriptor */
58
 static struct command_descriptor menu_cmd =
58
 static struct command_descriptor menu_cmd =
59
 	COMMAND_DESC ( struct menu_options, menu_opts, 0, MAX_ARGUMENTS,
59
 	COMMAND_DESC ( struct menu_options, menu_opts, 0, MAX_ARGUMENTS,
60
-		       "[--name <name>] [--delete] [<title>]" );
60
+		       "[<title>]" );
61
 
61
 
62
 /**
62
 /**
63
  * The "menu" command
63
  * The "menu" command
131
 /** "item" command descriptor */
131
 /** "item" command descriptor */
132
 static struct command_descriptor item_cmd =
132
 static struct command_descriptor item_cmd =
133
 	COMMAND_DESC ( struct item_options, item_opts, 0, MAX_ARGUMENTS,
133
 	COMMAND_DESC ( struct item_options, item_opts, 0, MAX_ARGUMENTS,
134
-		       "[--menu <menu>] [--key <key>] [--default] "
135
-		       "[<label>|--gap [<text>]]" );
134
+		       "[<label> [<text>]]" );
136
 
135
 
137
 /**
136
 /**
138
  * The "item" command
137
  * The "item" command
215
 
214
 
216
 /** "choose" command descriptor */
215
 /** "choose" command descriptor */
217
 static struct command_descriptor choose_cmd =
216
 static struct command_descriptor choose_cmd =
218
-	COMMAND_DESC ( struct choose_options, choose_opts, 1, 1,
219
-		       "[--menu <menu>] [--default <label>] "
220
-		       "[--timeout <timeout>] [--keep] <setting>" );
217
+	COMMAND_DESC ( struct choose_options, choose_opts, 1, 1, "<setting>" );
221
 
218
 
222
 /**
219
 /**
223
  * The "choose" command
220
  * The "choose" command

+ 1
- 1
src/hci/commands/neighbour_cmd.c View File

38
 
38
 
39
 /** "nstat" command descriptor */
39
 /** "nstat" command descriptor */
40
 static struct command_descriptor nstat_cmd =
40
 static struct command_descriptor nstat_cmd =
41
-	COMMAND_DESC ( struct nstat_options, nstat_opts, 0, 0, "" );
41
+	COMMAND_DESC ( struct nstat_options, nstat_opts, 0, 0, NULL );
42
 
42
 
43
 /**
43
 /**
44
  * The "nstat" command
44
  * The "nstat" command

+ 2
- 3
src/hci/commands/param_cmd.c View File

50
 
50
 
51
 /** "params" command descriptor */
51
 /** "params" command descriptor */
52
 static struct command_descriptor params_cmd =
52
 static struct command_descriptor params_cmd =
53
-	COMMAND_DESC ( struct params_options, params_opts, 0, 0,
54
-		       "[--name <name>] [--delete]" );
53
+	COMMAND_DESC ( struct params_options, params_opts, 0, 0, NULL );
55
 
54
 
56
 /**
55
 /**
57
  * The "params" command
56
  * The "params" command
96
 /** "param" command descriptor */
95
 /** "param" command descriptor */
97
 static struct command_descriptor param_cmd =
96
 static struct command_descriptor param_cmd =
98
 	COMMAND_DESC ( struct param_options, param_opts, 1, MAX_ARGUMENTS,
97
 	COMMAND_DESC ( struct param_options, param_opts, 1, MAX_ARGUMENTS,
99
-		       "[--params <params>] <key> [<value>]" );
98
+		       "<key> [<value>]" );
100
 
99
 
101
 /**
100
 /**
102
  * The "param" command
101
  * The "param" command

+ 1
- 2
src/hci/commands/ping_cmd.c View File

60
 
60
 
61
 /** "ping" command descriptor */
61
 /** "ping" command descriptor */
62
 static struct command_descriptor ping_cmd =
62
 static struct command_descriptor ping_cmd =
63
-	COMMAND_DESC ( struct ping_options, ping_opts, 1, 1,
64
-		       "[--size <size>] [--timeout <timeout>] <host>" );
63
+	COMMAND_DESC ( struct ping_options, ping_opts, 1, 1, "<host>" );
65
 
64
 
66
 /**
65
 /**
67
  * The "ping" command
66
  * The "ping" command

+ 1
- 1
src/hci/commands/poweroff_cmd.c View File

40
 
40
 
41
 /** "poweroff" command descriptor */
41
 /** "poweroff" command descriptor */
42
 static struct command_descriptor poweroff_cmd =
42
 static struct command_descriptor poweroff_cmd =
43
-	COMMAND_DESC ( struct poweroff_options, poweroff_opts, 0, 0, "" );
43
+	COMMAND_DESC ( struct poweroff_options, poweroff_opts, 0, 0, NULL );
44
 
44
 
45
 /**
45
 /**
46
  * The "poweroff" command
46
  * The "poweroff" command

+ 1
- 1
src/hci/commands/reboot_cmd.c View File

44
 
44
 
45
 /** "reboot" command descriptor */
45
 /** "reboot" command descriptor */
46
 static struct command_descriptor reboot_cmd =
46
 static struct command_descriptor reboot_cmd =
47
-	COMMAND_DESC ( struct reboot_options, reboot_opts, 0, 0, "[--warm]" );
47
+	COMMAND_DESC ( struct reboot_options, reboot_opts, 0, 0, NULL );
48
 
48
 
49
 /**
49
 /**
50
  * The "reboot" command
50
  * The "reboot" command

+ 1
- 1
src/hci/commands/route_cmd.c View File

39
 
39
 
40
 /** "route" command descriptor */
40
 /** "route" command descriptor */
41
 static struct command_descriptor route_cmd =
41
 static struct command_descriptor route_cmd =
42
-	COMMAND_DESC ( struct route_options, route_opts, 0, 0, "" );
42
+	COMMAND_DESC ( struct route_options, route_opts, 0, 0, NULL );
43
 
43
 
44
 /**
44
 /**
45
  * The "route" command
45
  * The "route" command

+ 21
- 13
src/hci/commands/sanboot_cmd.c View File

46
 };
46
 };
47
 
47
 
48
 /** "sanboot" option list */
48
 /** "sanboot" option list */
49
-static struct option_descriptor sanboot_opts[] = {
50
-	OPTION_DESC ( "drive", 'd', required_argument,
51
-		      struct sanboot_options, drive, parse_integer ),
52
-	OPTION_DESC ( "no-describe", 'n', no_argument,
53
-		      struct sanboot_options, no_describe, parse_flag ),
54
-	OPTION_DESC ( "keep", 'k', no_argument,
55
-		      struct sanboot_options, keep, parse_flag ),
49
+static union {
50
+	/* "sanboot" takes all three options */
51
+	struct option_descriptor sanboot[3];
52
+	/* "sanhook" takes only --drive and --no-describe */
53
+	struct option_descriptor sanhook[2];
54
+	/* "sanunhook" takes only --drive */
55
+	struct option_descriptor sanunhook[1];
56
+} opts = {
57
+	.sanboot = {
58
+		OPTION_DESC ( "drive", 'd', required_argument,
59
+			      struct sanboot_options, drive, parse_integer ),
60
+		OPTION_DESC ( "no-describe", 'n', no_argument,
61
+			      struct sanboot_options, no_describe, parse_flag ),
62
+		OPTION_DESC ( "keep", 'k', no_argument,
63
+			      struct sanboot_options, keep, parse_flag ),
64
+	},
56
 };
65
 };
57
 
66
 
67
+
58
 /** "sanhook" command descriptor */
68
 /** "sanhook" command descriptor */
59
 static struct command_descriptor sanhook_cmd =
69
 static struct command_descriptor sanhook_cmd =
60
-	COMMAND_DESC ( struct sanboot_options, sanboot_opts, 1, 1,
61
-		       "[--drive <drive>] [--no-describe] <root-path>" );
70
+	COMMAND_DESC ( struct sanboot_options, opts.sanhook, 1, 1,
71
+		       "<root-path>" );
62
 
72
 
63
 /** "sanboot" command descriptor */
73
 /** "sanboot" command descriptor */
64
 static struct command_descriptor sanboot_cmd =
74
 static struct command_descriptor sanboot_cmd =
65
-	COMMAND_DESC ( struct sanboot_options, sanboot_opts, 0, 1,
66
-		       "[--drive <drive>] [--no-describe] [--keep] "
75
+	COMMAND_DESC ( struct sanboot_options, opts.sanboot, 0, 1,
67
 		       "[<root-path>]" );
76
 		       "[<root-path>]" );
68
 
77
 
69
 /** "sanunhook" command descriptor */
78
 /** "sanunhook" command descriptor */
70
 static struct command_descriptor sanunhook_cmd =
79
 static struct command_descriptor sanunhook_cmd =
71
-	COMMAND_DESC ( struct sanboot_options, sanboot_opts, 0, 0,
72
-		       "[--drive <drive>]" );
80
+	COMMAND_DESC ( struct sanboot_options, opts.sanunhook, 0, 0, NULL );
73
 
81
 
74
 /**
82
 /**
75
  * The "sanboot", "sanhook" and "sanunhook" commands
83
  * The "sanboot", "sanhook" and "sanunhook" commands

+ 1
- 2
src/hci/commands/sync_cmd.c View File

46
 
46
 
47
 /** "sync" command descriptor */
47
 /** "sync" command descriptor */
48
 static struct command_descriptor sync_cmd =
48
 static struct command_descriptor sync_cmd =
49
-	COMMAND_DESC ( struct sync_options, sync_opts, 0, 0,
50
-		       "[--timeout <timeout>]" );
49
+	COMMAND_DESC ( struct sync_options, sync_opts, 0, 0, NULL );
51
 
50
 
52
 /**
51
 /**
53
  * "sync" command
52
  * "sync" command

+ 0
- 1
src/hci/commands/vlan_cmd.c View File

53
 /** "vcreate" command descriptor */
53
 /** "vcreate" command descriptor */
54
 static struct command_descriptor vcreate_cmd =
54
 static struct command_descriptor vcreate_cmd =
55
 	COMMAND_DESC ( struct vcreate_options, vcreate_opts, 1, 1,
55
 	COMMAND_DESC ( struct vcreate_options, vcreate_opts, 1, 1,
56
-		       "--tag <tag> [--priority <priority>] "
57
 		       "<trunk interface>" );
56
 		       "<trunk interface>" );
58
 
57
 
59
 /**
58
 /**

+ 1
- 1
src/hci/shell.c View File

107
 
107
 
108
 /** "shell" command descriptor */
108
 /** "shell" command descriptor */
109
 static struct command_descriptor shell_cmd =
109
 static struct command_descriptor shell_cmd =
110
-	COMMAND_DESC ( struct shell_options, shell_opts, 0, 0, "" );
110
+	COMMAND_DESC ( struct shell_options, shell_opts, 0, 0, NULL );
111
 
111
 
112
 /**
112
 /**
113
  * "shell" command
113
  * "shell" command

+ 1
- 1
src/image/script.c View File

375
 /** "prompt" command descriptor */
375
 /** "prompt" command descriptor */
376
 static struct command_descriptor prompt_cmd =
376
 static struct command_descriptor prompt_cmd =
377
 	COMMAND_DESC ( struct prompt_options, prompt_opts, 0, MAX_ARGUMENTS,
377
 	COMMAND_DESC ( struct prompt_options, prompt_opts, 0, MAX_ARGUMENTS,
378
-		       "[--key <key>] [--timeout <timeout>] [<text>]" );
378
+		       "[<text>]" );
379
 
379
 
380
 /**
380
 /**
381
  * "prompt" command
381
  * "prompt" command

Loading…
Cancel
Save