diff --git a/build/commands.py b/build/commands.py index 399e7c2e..229b888d 100644 --- a/build/commands.py +++ b/build/commands.py @@ -642,9 +642,9 @@ class CommandHandler: def get_build_mode(self): mode = None for o, a in self.opts: - if o == ('-d', '--debug'): + if o in ('-d', '--debug'): mode = 'debug' - elif o == ('-r', '--release'): + elif o in ('-r', '--release'): mode = 'release' return mode