summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-04-13 13:27:41 +0200
committerPacien TRAN-GIRARD2014-04-13 13:27:41 +0200
commit09a8eeb155b0af8cfd656f4128c698691d3457bb (patch)
treea108c521bc8074980fb99c2c7ba03590e62a558d
parent6e62166c1d4d29e819e45a966fb4df635039da09 (diff)
downloadlabviewplayer-09a8eeb155b0af8cfd656f4128c698691d3457bb.tar.gz
Move version display
-rw-r--r--src/mxml2csv.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mxml2csv.go b/src/mxml2csv.go
index 610998f..21dcbb4 100644
--- a/src/mxml2csv.go
+++ b/src/mxml2csv.go
@@ -20,11 +20,6 @@ var partFlag *int = flag.Int("p", 0, "The part to process.")
20func init() { 20func init() {
21 flag.Parse() 21 flag.Parse()
22 22
23 if *versionFlag {
24 fmt.Println("Version:", APP_VERSION)
25 return
26 }
27
28 if *outputFlag == "" { 23 if *outputFlag == "" {
29 *outputFlag = *inputFlag + ".csv" 24 *outputFlag = *inputFlag + ".csv"
30 } 25 }
@@ -126,6 +121,11 @@ func calcDuration(noteDuration int, divisions int, tempo float64) float64 {
126 121
127func main() { 122func main() {
128 123
124 if *versionFlag {
125 fmt.Println("Version:", APP_VERSION)
126 return
127 }
128
129 // read and parse MusicXML file 129 // read and parse MusicXML file
130 130
131 inputFile, err := os.Open(*inputFlag) 131 inputFile, err := os.Open(*inputFlag)