diff options
Diffstat (limited to 'bin/swift-proxy-server')
-rwxr-xr-x | bin/swift-proxy-server | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/swift-proxy-server b/bin/swift-proxy-server index 7599f8728..baccf568e 100755 --- a/bin/swift-proxy-server +++ b/bin/swift-proxy-server @@ -14,11 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys - +from swift.common.utils import parse_options from swift.common.wsgi import run_wsgi if __name__ == '__main__': - if len(sys.argv) != 2: - sys.exit("Usage: %s CONFIG_FILE" % sys.argv[0]) - run_wsgi(sys.argv[1], 'proxy-server', default_port=8080) + conf_file, options = parse_options() + run_wsgi(conf_file, 'proxy-server', default_port=8080, **options) |