Commit 1b79449e authored by Avuton Olrich's avatar Avuton Olrich

cmdline: Alphabetical help order like other GNU projects.

parent de075474
...@@ -84,12 +84,12 @@ void parseOptions(int argc, char **argv, Options *options) ...@@ -84,12 +84,12 @@ void parseOptions(int argc, char **argv, Options *options)
option_create_db, option_no_create_db, option_no_daemon, option_create_db, option_no_create_db, option_no_daemon,
option_no_config; option_no_config;
const GOptionEntry entries[] = { const GOptionEntry entries[] = {
{ "version", 'V', 0, G_OPTION_ARG_NONE, &option_version,
"print version number", NULL },
{ "kill", 0, 0, G_OPTION_ARG_NONE, &options->kill,
"kill the currently running mpd session", NULL },
{ "create-db", 0, 0, G_OPTION_ARG_NONE, &option_create_db, { "create-db", 0, 0, G_OPTION_ARG_NONE, &option_create_db,
"force (re)creation of database", NULL }, "force (re)creation of database", NULL },
{ "kill", 0, 0, G_OPTION_ARG_NONE, &options->kill,
"kill the currently running mpd session", NULL },
{ "no-config", 0, 0, G_OPTION_ARG_NONE, &option_no_config,
"don't read from config", NULL },
{ "no-create-db", 0, 0, G_OPTION_ARG_NONE, &option_no_create_db, { "no-create-db", 0, 0, G_OPTION_ARG_NONE, &option_no_create_db,
"don't create database, even if it doesn't exist", NULL }, "don't create database, even if it doesn't exist", NULL },
{ "no-daemon", 0, 0, G_OPTION_ARG_NONE, &option_no_daemon, { "no-daemon", 0, 0, G_OPTION_ARG_NONE, &option_no_daemon,
...@@ -98,8 +98,8 @@ void parseOptions(int argc, char **argv, Options *options) ...@@ -98,8 +98,8 @@ void parseOptions(int argc, char **argv, Options *options)
"print messages to stderr", NULL }, "print messages to stderr", NULL },
{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &options->verbose, { "verbose", 'v', 0, G_OPTION_ARG_NONE, &options->verbose,
"verbose logging", NULL }, "verbose logging", NULL },
{ "no-config", 0, 0, G_OPTION_ARG_NONE, &option_no_config, { "version", 'V', 0, G_OPTION_ARG_NONE, &option_version,
"don't read from config", NULL }, "print version number", NULL },
{ .long_name = NULL } { .long_name = NULL }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment