Fossil SCM

skintxt2config: exit with code 0 if --help is explicitly requested.

stephan 2021-02-06 16:31 trunk
Commit b3d51b9706c5b5e5f90578a1dec632e2cdae90064259b85e525160347ba0e9d5
1 file changed +1 -1
--- tools/skintxt2config.c
+++ tools/skintxt2config.c
@@ -174,11 +174,11 @@
174174
const char * zArg = argv[i];
175175
if(0==strcmp(zArg,"help") ||
176176
0==strcmp(zArg,"--help") ||
177177
0==strcmp(zArg,"-?")){
178178
app_usage(0);
179
- rc = 1;
179
+ rc = 0;
180180
break;
181181
}else if(0==strcmp(zArg,"-o")){
182182
/* -o OUTFILE (- == stdout) */
183183
++i;
184184
if(i==argc){
185185
--- tools/skintxt2config.c
+++ tools/skintxt2config.c
@@ -174,11 +174,11 @@
174 const char * zArg = argv[i];
175 if(0==strcmp(zArg,"help") ||
176 0==strcmp(zArg,"--help") ||
177 0==strcmp(zArg,"-?")){
178 app_usage(0);
179 rc = 1;
180 break;
181 }else if(0==strcmp(zArg,"-o")){
182 /* -o OUTFILE (- == stdout) */
183 ++i;
184 if(i==argc){
185
--- tools/skintxt2config.c
+++ tools/skintxt2config.c
@@ -174,11 +174,11 @@
174 const char * zArg = argv[i];
175 if(0==strcmp(zArg,"help") ||
176 0==strcmp(zArg,"--help") ||
177 0==strcmp(zArg,"-?")){
178 app_usage(0);
179 rc = 0;
180 break;
181 }else if(0==strcmp(zArg,"-o")){
182 /* -o OUTFILE (- == stdout) */
183 ++i;
184 if(i==argc){
185

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button