aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-17 19:06:33 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-17 19:06:33 +0100
commitd38a317c4ea3bb6e577802ca3a8e70500252f549 (patch)
treefd7f57aba7edc98ade85c5f4d415e65701af02ba
parentf76d86676c93ef2e510110a54f3caab763e4f87c (diff)
downloadpaludis-d38a317c4ea3bb6e577802ca3a8e70500252f549.tar.gz
paludis-d38a317c4ea3bb6e577802ca3a8e70500252f549.tar.xz
Short options for log level
-rw-r--r--paludis/args/log_level_arg.cc10
-rw-r--r--src/clients/cave/command_line.cc2
2 files changed, 6 insertions, 6 deletions
diff --git a/paludis/args/log_level_arg.cc b/paludis/args/log_level_arg.cc
index a38a352..294b653 100644
--- a/paludis/args/log_level_arg.cc
+++ b/paludis/args/log_level_arg.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006 Ciaran McCreesh
+ * Copyright (c) 2006, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -27,10 +27,10 @@ LogLevelArg::LogLevelArg(ArgsGroup * const grp, const std::string & ln,
char sh) :
EnumArg(grp, ln, sh, "Specify the log level",
EnumArgOptions
- ("debug", "Show debug output (noisy)")
- ("qa", "Show QA messages and warnings only")
- ("warning", "Show warnings only")
- ("silent", "Suppress all log messages (UNSAFE)"),
+ ("debug", 'd', "Show debug output (noisy)")
+ ("qa", 'q', "Show QA messages and warnings only")
+ ("warning", 'w', "Show warnings only")
+ ("silent", 's', "Suppress all log messages (UNSAFE)"),
"qa")
{
}
diff --git a/src/clients/cave/command_line.cc b/src/clients/cave/command_line.cc
index ffa0367..a4cbe8f 100644
--- a/src/clients/cave/command_line.cc
+++ b/src/clients/cave/command_line.cc
@@ -27,7 +27,7 @@ CaveCommandLine::CaveCommandLine() :
g_global_options(main_options_section(), "Global Options", "Global options, used by every subcommand."),
a_environment(&g_global_options, "environment", 'E',
"Environment specification (class:suffix, both parts optional)"),
- a_log_level(&g_global_options, "log-level", '\0'),
+ a_log_level(&g_global_options, "log-level", 'L'),
a_colour(&g_global_options, "colour", 'c',
"Specify whether to use colour",
args::EnumArg::EnumArgOptions