summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-16 03:40:44 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-16 03:40:44 +0000
commitcd8b1fdbf4c0fba27f75a42b7133573a6681c5a2 (patch)
treebb9524eb175d602af709406b55d1ed42cdab0c24 /cpp/src/IcePack/Client.cpp
parentparser (diff)
downloadice-cd8b1fdbf4c0fba27f75a42b7133573a6681c5a2.tar.bz2
ice-cd8b1fdbf4c0fba27f75a42b7133573a6681c5a2.tar.xz
ice-cd8b1fdbf4c0fba27f75a42b7133573a6681c5a2.zip
lots and lots of fixes
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r--cpp/src/IcePack/Client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp
index 0afafd6c561..8b2c461a0fe 100644
--- a/cpp/src/IcePack/Client.cpp
+++ b/cpp/src/IcePack/Client.cpp
@@ -141,9 +141,9 @@ run(int argc, char* argv[], CommunicatorPtr communicator)
ParserPtr parser = Parser::createParser(communicator, admin);
int status = EXIT_SUCCESS;
- if (argc < 2) // No files given, let's use standard input
+ if (argc < 2) // No files given
{
- if (!commands.empty())
+ if (!commands.empty()) // Commands were given
{
int parseStatus = parser->parse(commands, debug);
if (parseStatus == EXIT_FAILURE)
@@ -151,7 +151,7 @@ run(int argc, char* argv[], CommunicatorPtr communicator)
status = EXIT_FAILURE;
}
}
- else
+ else // No commands, let's use standard input
{
int parseStatus = parser->parse(stdin, debug);
if (parseStatus == EXIT_FAILURE)