summaryrefslogtreecommitdiff
path: root/cpp/src/slice2php/Main.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-01-26 22:20:29 +0100
committerJose <jose@zeroc.com>2017-01-26 22:20:29 +0100
commitd5197bd155606330e79adcf61fdd83b4871e413a (patch)
tree8720fe681beec4bf4cbc9bf385c41b0ab00b68de /cpp/src/slice2php/Main.cpp
parentFixed bug in float hash function (diff)
downloadice-d5197bd155606330e79adcf61fdd83b4871e413a.tar.bz2
ice-d5197bd155606330e79adcf61fdd83b4871e413a.tar.xz
ice-d5197bd155606330e79adcf61fdd83b4871e413a.zip
PHP mapping use Namespace builds by default
Diffstat (limited to 'cpp/src/slice2php/Main.cpp')
-rw-r--r--cpp/src/slice2php/Main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index b8ea7802fd4..73822f05f9d 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -1605,7 +1605,7 @@ usage(const string& n)
"-d, --debug Print debug messages.\n"
"--all Generate code for Slice definitions in included files.\n"
"--checksum Generate checksums for Slice definitions.\n"
- "-n, --namespace Use PHP namespaces (requires PHP 5.3 or later).\n"
+ "--no-namespace Do not use PHP namespaces (deprecated).\n"
"--ice Allow reserved Ice prefix in Slice identifiers\n"
" deprecated: use instead [[\"ice-prefix\"]] metadata.\n"
"--underscore Allow underscores in Slice identifiers\n"
@@ -1633,7 +1633,7 @@ compile(const vector<string>& argv)
opts.addOpt("", "underscore");
opts.addOpt("", "all");
opts.addOpt("", "checksum");
- opts.addOpt("n", "namespace");
+ opts.addOpt("n", "no-namespace");
bool validate = find(argv.begin(), argv.end(), "--validate") != argv.end();
@@ -1703,7 +1703,7 @@ compile(const vector<string>& argv)
bool checksum = opts.isSet("checksum");
- bool ns = opts.isSet("namespace");
+ bool ns = !opts.isSet("no-namespace");
if(args.empty())
{