flutter_flutter/tools/skypy/configuration.py
Adam Barth c6e28d12db Fix test_sky in release builds
This CL passes the configuration information from test_sky to sky_server so
that sky_server can find the correct output directory.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/705623003
2014-11-04 17:20:30 -08:00

16 lines
652 B
Python

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import optparse
def add_arguments(parser):
parser.add_argument("-t", "--target", dest="configuration",
help="Specify the target configuration to use (Debug/Release)", default='Release')
parser.add_argument('--debug', action='store_const', const='Debug', dest="configuration",
help='Set the configuration to Debug')
parser.add_argument('--release', action='store_const', const='Release', dest="configuration",
help='Set the configuration to Release')