summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-04 20:00:14 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-04 20:00:14 +0900
commitf6d3f961bec54a51311df407b27a5b0b39be8f02 (patch)
tree53a8f92650e8aacf34c4eb6153b161e08a502258
parent956a003c018f850151d004f6c123e7e9703f8aaf (diff)
downloadbuildstream-f6d3f961bec54a51311df407b27a5b0b39be8f02.tar.gz
main.py: Renamed option to --colors / --no-colors
-rwxr-xr-xbuildstream/_frontend/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 868922973..54171b7ec 100755
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -77,8 +77,8 @@ _, _, _, _, host_machine = os.uname()
@click.option('--log-file',
type=click.File(mode='w', encoding='UTF-8'),
help="A file to store the main log (allows storing the main log while in interactive mode)")
-@click.option('--ansi-colors/--no-ansi-colors', default=None,
- help="Force enable/disable ANSI color and control codes in output")
+@click.option('--colors/--no-colors', default=None,
+ help="Force enable/disable ANSI color codes in output")
@click.pass_context
def cli(context, **kwargs):
"""Build and manipulate BuildStream projects
@@ -465,9 +465,9 @@ class App():
self.messaging_enabled = True
# Resolve whether to use colors in output
- if self.main_options['ansi_colors'] is None:
+ if self.main_options['colors'] is None:
self.colors = self.is_a_tty
- elif self.main_options['ansi_colors']:
+ elif self.main_options['colors']:
self.colors = True
else:
self.colors = False