diff --git a/src/configuration.cpp b/src/configuration.cpp index 24ecbf9b..f61851f0 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -77,15 +77,15 @@ bool configure(int argc, char **argv) po::options_description options("Options"); options.add_options() - ("host,h", po::value()->default_value("localhost"), "connect to server at host") - ("port,p", po::value()->default_value(6600), "connect to server at port") - ("current-song", po::value()->implicit_value("{{{(%l) }{{%a - }%t}}|{%f}}"), "print current song using given format and exit") - ("config,c", po::value>(&config_paths)->default_value(default_config_paths, join(default_config_paths, " AND ")), "specify configuration file(s)") + ("host,h", po::value()->value_name("HOST")->default_value("localhost"), "connect to server at host") + ("port,p", po::value()->value_name("PORT")->default_value(6600), "connect to server at port") + ("current-song", po::value()->value_name("FORMAT")->implicit_value("{{{(%l) }{{%a - }%t}}|{%f}}"), "print current song using given format and exit") + ("config,c", po::value>(&config_paths)->value_name("PATH")->default_value(default_config_paths, join(default_config_paths, " AND ")), "specify configuration file(s)") ("ignore-config-errors", "ignore unknown and invalid options in configuration files") ("test-lyrics-fetchers", "check if lyrics fetchers work") - ("bindings,b", po::value(&bindings_path)->default_value("~/.ncmpcpp/bindings"), "specify bindings file") - ("screen,s", po::value(), "specify the startup screen") - ("slave-screen,S", po::value(), "specify the startup slave screen") + ("bindings,b", po::value(&bindings_path)->value_name("PATH")->default_value("~/.ncmpcpp/bindings"), "specify bindings file") + ("screen,s", po::value()->value_name("SCREEN"), "specify the startup screen") + ("slave-screen,S", po::value()->value_name("SCREEN"), "specify the startup slave screen") ("help,?", "show help message") ("version,v", "display version information") ;