summaryrefslogtreecommitdiffstats
path: root/cmd-show-environment.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-13 21:53:57 +0000
committernicm <nicm>2015-12-13 21:53:57 +0000
commitecfeee2e8255a77f82a07124c93c8dbc7683c421 (patch)
tree9203458cd986398219f89c635b0583c8144b6cda /cmd-show-environment.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-show-environment.c')
-rw-r--r--cmd-show-environment.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/cmd-show-environment.c b/cmd-show-environment.c
index 723d3039..398a1e50 100644
--- a/cmd-show-environment.c
+++ b/cmd-show-environment.c
@@ -34,11 +34,14 @@ void cmd_show_environment_print(struct cmd *, struct cmd_q *,
struct environ_entry *);
const struct cmd_entry cmd_show_environment_entry = {
- "show-environment", "showenv",
- "gst:", 0, 1,
- "[-gs] " CMD_TARGET_SESSION_USAGE " [name]",
- CMD_SESSION_T|CMD_CANFAIL,
- cmd_show_environment_exec
+ .name = "show-environment",
+ .alias = "showenv",
+
+ .args = { "gst:", 0, 1 },
+ .usage = "[-gs] " CMD_TARGET_SESSION_USAGE " [name]",
+
+ .flags = CMD_SESSION_T|CMD_CANFAIL,
+ .exec = cmd_show_environment_exec
};
char *