Skip to content

Commit 7ba21b6

Browse files
authored
- Exit with zero on --help
1 parent d149e53 commit 7ba21b6

File tree

38 files changed

+200
-70
lines changed

38 files changed

+200
-70
lines changed

examples/catch-all-advanced/cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ parse_requirements() {
194194
--help | -h )
195195
long_usage=yes
196196
cli_usage
197-
exit 1
197+
exit
198198
;;
199199

200200
esac
@@ -264,7 +264,7 @@ cli_download_parse_requirements() {
264264
--help | -h )
265265
long_usage=yes
266266
cli_download_usage
267-
exit 1
267+
exit
268268
;;
269269

270270
esac
@@ -329,7 +329,7 @@ cli_upload_parse_requirements() {
329329
--help | -h )
330330
long_usage=yes
331331
cli_upload_usage
332-
exit 1
332+
exit
333333
;;
334334

335335
esac

examples/catch-all/download

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ parse_requirements() {
8686
--help | -h )
8787
long_usage=yes
8888
download_usage
89-
exit 1
89+
exit
9090
;;
9191

9292
esac

examples/colors/colorly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ parse_requirements() {
126126
--help | -h )
127127
long_usage=yes
128128
colorly_usage
129-
exit 1
129+
exit
130130
;;
131131

132132
esac

examples/command-default/ftp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ parse_requirements() {
164164
--help | -h )
165165
long_usage=yes
166166
ftp_usage
167-
exit 1
167+
exit
168168
;;
169169

170170
esac
@@ -240,7 +240,7 @@ ftp_upload_parse_requirements() {
240240
--help | -h )
241241
long_usage=yes
242242
ftp_upload_usage
243-
exit 1
243+
exit
244244
;;
245245

246246
esac
@@ -296,7 +296,7 @@ ftp_download_parse_requirements() {
296296
--help | -h )
297297
long_usage=yes
298298
ftp_download_usage
299-
exit 1
299+
exit
300300
;;
301301

302302
esac

examples/command-groups/ftp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ parse_requirements() {
229229
--help | -h )
230230
long_usage=yes
231231
ftp_usage
232-
exit 1
232+
exit
233233
;;
234234

235235
esac
@@ -313,7 +313,7 @@ ftp_download_parse_requirements() {
313313
--help | -h )
314314
long_usage=yes
315315
ftp_download_usage
316-
exit 1
316+
exit
317317
;;
318318

319319
esac
@@ -369,7 +369,7 @@ ftp_upload_parse_requirements() {
369369
--help | -h )
370370
long_usage=yes
371371
ftp_upload_usage
372-
exit 1
372+
exit
373373
;;
374374

375375
esac
@@ -425,7 +425,7 @@ ftp_login_parse_requirements() {
425425
--help | -h )
426426
long_usage=yes
427427
ftp_login_usage
428-
exit 1
428+
exit
429429
;;
430430

431431
esac
@@ -469,7 +469,7 @@ ftp_logout_parse_requirements() {
469469
--help | -h )
470470
long_usage=yes
471471
ftp_logout_usage
472-
exit 1
472+
exit
473473
;;
474474

475475
esac

examples/commands-nested/cli

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ parse_requirements() {
313313
--help | -h )
314314
long_usage=yes
315315
cli_usage
316-
exit 1
316+
exit
317317
;;
318318

319319
esac
@@ -383,7 +383,7 @@ cli_dir_parse_requirements() {
383383
--help | -h )
384384
long_usage=yes
385385
cli_dir_usage
386-
exit 1
386+
exit
387387
;;
388388

389389
esac
@@ -453,7 +453,7 @@ cli_dir_list_parse_requirements() {
453453
--help | -h )
454454
long_usage=yes
455455
cli_dir_list_usage
456-
exit 1
456+
exit
457457
;;
458458

459459
esac
@@ -509,7 +509,7 @@ cli_dir_remove_parse_requirements() {
509509
--help | -h )
510510
long_usage=yes
511511
cli_dir_remove_usage
512-
exit 1
512+
exit
513513
;;
514514

515515
esac
@@ -571,7 +571,7 @@ cli_file_parse_requirements() {
571571
--help | -h )
572572
long_usage=yes
573573
cli_file_usage
574-
exit 1
574+
exit
575575
;;
576576

577577
esac
@@ -641,7 +641,7 @@ cli_file_show_parse_requirements() {
641641
--help | -h )
642642
long_usage=yes
643643
cli_file_show_usage
644-
exit 1
644+
exit
645645
;;
646646

647647
esac
@@ -697,7 +697,7 @@ cli_file_edit_parse_requirements() {
697697
--help | -h )
698698
long_usage=yes
699699
cli_file_edit_usage
700-
exit 1
700+
exit
701701
;;
702702

703703
esac

examples/commands/cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ parse_requirements() {
203203
--help | -h )
204204
long_usage=yes
205205
cli_usage
206-
exit 1
206+
exit
207207
;;
208208

209209
esac
@@ -273,7 +273,7 @@ cli_download_parse_requirements() {
273273
--help | -h )
274274
long_usage=yes
275275
cli_download_usage
276-
exit 1
276+
exit
277277
;;
278278

279279
esac
@@ -338,7 +338,7 @@ cli_upload_parse_requirements() {
338338
--help | -h )
339339
long_usage=yes
340340
cli_upload_usage
341-
exit 1
341+
exit
342342
;;
343343

344344
esac

examples/completions/cli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ parse_requirements() {
259259
--help | -h )
260260
long_usage=yes
261261
cli_usage
262-
exit 1
262+
exit
263263
;;
264264

265265
esac
@@ -336,7 +336,7 @@ cli_completions_parse_requirements() {
336336
--help | -h )
337337
long_usage=yes
338338
cli_completions_usage
339-
exit 1
339+
exit
340340
;;
341341

342342
esac
@@ -380,7 +380,7 @@ cli_download_parse_requirements() {
380380
--help | -h )
381381
long_usage=yes
382382
cli_download_usage
383-
exit 1
383+
exit
384384
;;
385385

386386
esac
@@ -445,7 +445,7 @@ cli_upload_parse_requirements() {
445445
--help | -h )
446446
long_usage=yes
447447
cli_upload_usage
448-
exit 1
448+
exit
449449
;;
450450

451451
esac

examples/config-ini/configly

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ parse_requirements() {
358358
--help | -h )
359359
long_usage=yes
360360
configly_usage
361-
exit 1
361+
exit
362362
;;
363363

364364
esac
@@ -435,7 +435,7 @@ configly_set_parse_requirements() {
435435
--help | -h )
436436
long_usage=yes
437437
configly_set_usage
438-
exit 1
438+
exit
439439
;;
440440

441441
esac
@@ -502,7 +502,7 @@ configly_get_parse_requirements() {
502502
--help | -h )
503503
long_usage=yes
504504
configly_get_usage
505-
exit 1
505+
exit
506506
;;
507507

508508
esac
@@ -558,7 +558,7 @@ configly_list_parse_requirements() {
558558
--help | -h )
559559
long_usage=yes
560560
configly_list_usage
561-
exit 1
561+
exit
562562
;;
563563

564564
esac

examples/custom-includes/download

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ parse_requirements() {
9898
--help | -h )
9999
long_usage=yes
100100
download_usage
101-
exit 1
101+
exit
102102
;;
103103

104104
esac

0 commit comments

Comments
 (0)