aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/command_line.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/command_line.cc')
-rw-r--r--src/clients/cave/command_line.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clients/cave/command_line.cc b/src/clients/cave/command_line.cc
index 1025513b3..ffa0367c3 100644
--- a/src/clients/cave/command_line.cc
+++ b/src/clients/cave/command_line.cc
@@ -28,6 +28,14 @@ CaveCommandLine::CaveCommandLine() :
a_environment(&g_global_options, "environment", 'E',
"Environment specification (class:suffix, both parts optional)"),
a_log_level(&g_global_options, "log-level", '\0'),
+ a_colour(&g_global_options, "colour", 'c',
+ "Specify whether to use colour",
+ args::EnumArg::EnumArgOptions
+ ("auto", 'a', "Yes if stdout is connected to a terminal")
+ ("yes", 'y', "Yes")
+ ("no", 'n', "No"),
+ "auto"),
+ a_color(&a_colour, "color", true),
a_help(&g_global_options, "help", 'h', "display help message", false),
a_version(&g_global_options, "version", 'v', "display version information", false)
{