summaryrefslogtreecommitdiff
path: root/helpusage.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpusage.go')
-rw-r--r--helpusage.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/helpusage.go b/helpusage.go
new file mode 100644
index 0000000..ff25a2d
--- /dev/null
+++ b/helpusage.go
@@ -0,0 +1,32 @@
+package main
+
+import (
+ "fmt"
+ "os"
+)
+
+func usage() {
+ fmt.Println("bt-split: an Excel file splitter")
+ fmt.Println("Pass in an excel file, and then follow the instructions.")
+ fmt.Println("The output is given in the bt-split/ subdirectory.\n")
+ fmt.Println("Flags:")
+ fmt.Println("--sheet-name, -s The name of the sheet to output.")
+ fmt.Println(" Can contain %s which is replaced")
+ fmt.Println(" with the data that is split on.")
+ fmt.Println("--output-sheet, -o The name of the sheet to output on.")
+ fmt.Println(" Defaults to same name as the file.")
+ fmt.Println("--output-dir, -d The name of the directory to output in.")
+ fmt.Println(" Defaults to BadTudexo.")
+ fmt.Println("--algorithm, -a Select the algorithm to use.")
+ fmt.Println(" Valid options: indiv,group.")
+ fmt.Println(" The default is: indiv.")
+ fmt.Println("--algo-info More info about the algoriths.")
+
+ os.Exit(0)
+
+}
+
+func version() {
+ fmt.Printf("bt-split: v0.0.1\n")
+ os.Exit(0)
+}