diff options
author | Pacien TRAN-GIRARD | 2014-04-13 13:27:41 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-04-13 13:27:41 +0200 |
commit | 09a8eeb155b0af8cfd656f4128c698691d3457bb (patch) | |
tree | a108c521bc8074980fb99c2c7ba03590e62a558d /src | |
parent | 6e62166c1d4d29e819e45a966fb4df635039da09 (diff) | |
download | labviewplayer-09a8eeb155b0af8cfd656f4128c698691d3457bb.tar.gz |
Move version display
Diffstat (limited to 'src')
-rw-r--r-- | src/mxml2csv.go | 10 |
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.") | |||
20 | func init() { | 20 | func 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 | ||
127 | func main() { | 122 | func 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) |