blob: f81102de4c3141093bbeba805544726239974006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#include "config.h"
#include "eos-profile-cmds.h"
gboolean
eos_profile_cmd_help_parse_args (int argc,
char **argv)
{
return TRUE;
}
static gboolean
print_available_commands (const EosProfileCmd *cmd,
gpointer dummy G_GNUC_UNUSED)
{
g_print (" %s%*s%s\n",
cmd->name,
14 - strlen (cmd->name), " ",
cmd->description);
return FALSE;
}
int
eos_profile_cmd_help_main (void)
{
g_print (
"eos-profile\n"
"\n"
"Usage: eos-profile <COMMAND> [OPTION…]\n"
"\n"
"COMMANDS\n"
"\n"
);
eos_profile_foreach_cmd (print_available_commands, NULL);
g_print ("\n");
return 0;
}
|