|
1 | | -function printCreditsCppBids() |
2 | | - |
3 | | - version = '0.0.1'; |
4 | | - |
5 | | - contributors = { ... |
6 | | - 'Rémi Gau', ... |
7 | | - 'Marco Barilari', ... |
8 | | - 'Ceren Battal'}; |
9 | | - |
10 | | - % DOI_URL = 'https://doi.org/10.5281/zenodo.3554331.'; |
11 | | - |
12 | | - repoURL = 'https://github.com/cpp-lln-lab/CPP_BIDS'; |
13 | | - |
14 | | - fprintf('\n\n'); |
15 | | - |
16 | | - disp('___________________________________________________'); |
17 | | - disp('___________________________________________________'); |
18 | | - disp(' '); |
19 | | - disp(' ___ ___ ___ ___ ___ ___ ___ '); |
20 | | - disp(' / __| _ \ _ \ | _ )_ _| \/ __|'); |
21 | | - disp(' | (__| _/ _/ | _ \| || |) \__ \'); |
22 | | - disp(' \___|_| |_| |___/___|___/|___/'); |
23 | | - disp(' '); |
24 | | - |
25 | | - splash = 'Thank you for using the CPP BIDS - version %s. '; |
26 | | - fprintf(splash, version); |
27 | | - fprintf('\n\n'); |
28 | | - |
29 | | - fprintf('Current list of contributors includes:\n'); |
30 | | - for iCont = 1:numel(contributors) |
31 | | - fprintf(' %s\n', contributors{iCont}); |
| 1 | +function printCreditsCppBids(cfg) |
| 2 | + |
| 3 | + verbose = true; |
| 4 | + if ~isempty(cfg) && isfield(cfg, 'verbose') && ~isempty(cfg.verbose) |
| 5 | + verbose = cfg.verbose; |
32 | 6 | end |
33 | | - fprintf('\b\n\n'); |
34 | | - |
35 | | - % fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL) |
36 | | - |
37 | | - fprintf('For bug report, suggestions or contributions see: \n %s\n\n', repoURL); |
38 | | - |
39 | | - disp('___________________________________________________'); |
40 | | - disp('___________________________________________________'); |
41 | | - |
42 | | - fprintf('\n\n'); |
43 | | - |
| 7 | + |
| 8 | + if verbose |
| 9 | + |
| 10 | + version = '0.0.1'; |
| 11 | + |
| 12 | + contributors = { ... |
| 13 | + 'Rémi Gau', ... |
| 14 | + 'Marco Barilari', ... |
| 15 | + 'Ceren Battal'}; |
| 16 | + |
| 17 | + % DOI_URL = 'https://doi.org/10.5281/zenodo.3554331.'; |
| 18 | + |
| 19 | + repoURL = 'https://github.com/cpp-lln-lab/CPP_BIDS'; |
| 20 | + |
| 21 | + fprintf('\n\n'); |
| 22 | + |
| 23 | + disp('___________________________________________________'); |
| 24 | + disp('___________________________________________________'); |
| 25 | + disp(' '); |
| 26 | + disp(' ___ ___ ___ ___ ___ ___ ___ '); |
| 27 | + disp(' / __| _ \ _ \ | _ )_ _| \/ __|'); |
| 28 | + disp(' | (__| _/ _/ | _ \| || |) \__ \'); |
| 29 | + disp(' \___|_| |_| |___/___|___/|___/'); |
| 30 | + disp(' '); |
| 31 | + |
| 32 | + splash = 'Thank you for using the CPP BIDS - version %s. '; |
| 33 | + fprintf(splash, version); |
| 34 | + fprintf('\n\n'); |
| 35 | + |
| 36 | + fprintf('Current list of contributors includes:\n'); |
| 37 | + for iCont = 1:numel(contributors) |
| 38 | + fprintf(' %s\n', contributors{iCont}); |
| 39 | + end |
| 40 | + fprintf('\b\n\n'); |
| 41 | + |
| 42 | + % fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL) |
| 43 | + |
| 44 | + fprintf('For bug report, suggestions or contributions see: \n %s\n\n', repoURL); |
| 45 | + |
| 46 | + disp('___________________________________________________'); |
| 47 | + disp('___________________________________________________'); |
| 48 | + |
| 49 | + fprintf('\n\n'); |
| 50 | + |
| 51 | + end |
| 52 | + |
44 | 53 | end |
0 commit comments