]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change help into discspan file
authorBastian Dehn <hhaalo@arcor.de>
Sun, 21 Sep 2025 08:41:25 +0000 (10:41 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 21 Sep 2025 08:41:25 +0000 (10:41 +0200)
src/discspan.c
src/help.c [deleted file]
src/help.h [deleted file]

index 162234f7c12ca74c47aaba8fb93eb19fd191b00a..1b631b7a55210d424fd806f577e2ce475e27130f 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "config_discspan.h"
 #include "libspandisc.h"
-#include "help.h"
 
 #define BLURAY 24159191040
 #define DVD9 8500000000
@@ -19,6 +18,21 @@ void show_version()
        printf("libspandisc %s\n", get_version());
 }
 
+void useage()
+{
+       printf("\nUsage: discspan <option> -i <source> -o <prefix>\n\n");
+       printf("   -i <source>\tpath to source file\n");
+       printf("   -o <prefix>\tprefix for output files\n\n");
+       printf("Option:\n\n");
+       printf("   -b\t\tsize of Bluray: 25.000.000.000 bytes\n");
+       printf("   -9\t\tsize of double layer DVD 8.500.000.000 bytes\n");
+       printf("   -5\t\tsize of sigle layer DVD: 4.700.000.000 bytes\n");
+       printf("   -c\t\tsize of CD: 734.003.200 bytes\n");
+       printf("   -f <size>\tsize in bytes\n");
+       printf("   -v\t\tshow version\n");
+       printf("   -h\t\tshow this help\n\n");
+}
+
 void print_human_read_size(const char* output, medium_t* medium)
 {
        uint64_t humanread;
diff --git a/src/help.c b/src/help.c
deleted file mode 100644 (file)
index 2be4019..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-#include "help.h"
-
-void useage()
-{
-       printf("\nUsage: discspan <option> -i <source> -o <prefix>\n\n");
-       printf("   -i <source>\tpath to source file\n");
-       printf("   -o <prefix>\tprefix for output files\n\n");
-       printf("Option:\n\n");
-       printf("   -b\t\tsize of Bluray: 25.000.000.000 bytes\n");
-       printf("   -9\t\tsize of double layer DVD 8.500.000.000 bytes\n");
-       printf("   -5\t\tsize of sigle layer DVD: 4.700.000.000 bytes\n");
-       printf("   -c\t\tsize of CD: 734.003.200 bytes\n");
-       printf("   -f <size>\tsize in bytes\n");
-       printf("   -v\t\tshow version\n");
-       printf("   -h\t\tshow this help\n\n");
-}
diff --git a/src/help.h b/src/help.h
deleted file mode 100644 (file)
index 5744339..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _HELP_H
-#define _HELP_H
-
-void useage();
-
-#endif