src/cline.c

changeset 48
0d2c13c24fd0
parent 44
9574a181ec26
child 50
63477d92411d
equal deleted inserted replaced
47:e5455e692b45 48:0d2c13c24fd0
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * Copyright 2013 Mike Becker. All rights reserved. 3 * Copyright 2017 Mike Becker. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
76 "\n cline -s .c,.h --exclude-cstyle-comments" 76 "\n cline -s .c,.h --exclude-cstyle-comments"
77 "\n"); 77 "\n");
78 } 78 }
79 79
80 int exit_with_version(settings_t* settings) { 80 int exit_with_version(settings_t* settings) {
81 printf("cline - Version: %s\n", VERSION); 81 printf("cline - Version: " VERSION "\n");
82 destroy_settings_t(settings); 82 destroy_settings_t(settings);
83 return 0; 83 return 0;
84 } 84 }
85 85
86 int exit_with_help(settings_t* settings, int code) { 86 int exit_with_help(settings_t* settings, int code) {
87 printf("cline - Version: " VERSION "\n\n");
87 printHelpText(); 88 printHelpText();
88 destroy_settings_t(settings); 89 destroy_settings_t(settings);
89 return code; 90 return code;
90 } 91 }
91 92

mercurial