summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtfx.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rtfx.cpp b/src/rtfx.cpp
index bb26777..1fb2d2c 100644
--- a/src/rtfx.cpp
+++ b/src/rtfx.cpp
@@ -54,11 +54,11 @@ int main(int argc, char* argv[])
{
XmlComposerOptions options;
+ argc--;
+ argv++;
+
while(argc > 1)
{
- argc--;
- argv++;
-
char* arg = argv[0];
if(*arg != '-')
break;
@@ -83,8 +83,12 @@ int main(int argc, char* argv[])
if(arg == NULL)
break;
+
+ argc--;
+ argv++;
}
+
if(argc > 2)
usage();