Mercurial > hg > dmlib
comparison tools/fanalyze.c @ 2567:b205c60aa657
More error handling/help stuff.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 28 Feb 2022 12:03:23 +0200 |
parents | d75431bf1a7d |
children | 9f26a93d7e70 |
comparison
equal
deleted
inserted
replaced
2566:d75431bf1a7d | 2567:b205c60aa657 |
---|---|
672 dmInitStats(&totalStats); | 672 dmInitStats(&totalStats); |
673 | 673 |
674 // Parse arguments | 674 // Parse arguments |
675 if (!dmArgsProcess(argc, argv, optList, optListN, | 675 if (!dmArgsProcess(argc, argv, optList, optListN, |
676 argHandleOpt, argHandleNonOpt, OPTH_BAILOUT)) | 676 argHandleOpt, argHandleNonOpt, OPTH_BAILOUT)) |
677 exit(1); | 677 goto out; |
678 | 678 |
679 if (nsrcFiles < 1) | 679 if (nsrcFiles < 1) |
680 { | 680 { |
681 argShowHelp(); | 681 argShowHelp(); |
682 res = dmError(DMERR_INVALID_ARGS, | |
683 "No input file(s) specified.\n"); | |
682 goto out; | 684 goto out; |
683 } | 685 } |
684 | 686 |
685 // Allocate file flags | 687 // Allocate file flags |
686 fileFlagsSize = sizeof(BOOL) * nsrcFiles; | 688 fileFlagsSize = sizeof(BOOL) * nsrcFiles; |