summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xa.outbin27104 -> 27248 bytes
-rw-r--r--test/compose-all-in-dir.c9
2 files changed, 6 insertions, 3 deletions
diff --git a/a.out b/a.out
index 108e083..4889f0c 100755
--- a/a.out
+++ b/a.out
Binary files differ
diff --git a/test/compose-all-in-dir.c b/test/compose-all-in-dir.c
index 489891b..8805b0d 100644
--- a/test/compose-all-in-dir.c
+++ b/test/compose-all-in-dir.c
@@ -6,14 +6,17 @@
#include <string.h>
#include <limits.h>
extern int main(int argc, char* argv[]) {
- if(argc != 3) {
- printf("usage: %s source-dir/ destination-dir/ (trailing slash mandatory)\n", argv[0]);
+ if(argc != 3 && argc != 4) {
+ printf("usage: %s source-dir/ destination-dir/ [destination .extension=.html]\n", argv[0]);
return 1;
}
+ char* destination_extension = ".html";
+ if(argc == 4) {
+ destination_extension = argv[3];
+ }
char* source_folder_name = argv[1];
char* destination_folder_name = argv[2];
char* file_extension = ".bvr";
- char* destination_extension = ".html";
char* file_extension2 = ".bverbose"; // unofficial
char source_filename[NAME_MAX];
char destination_filename[NAME_MAX];