From 09a8eeb155b0af8cfd656f4128c698691d3457bb Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 13 Apr 2014 13:27:41 +0200 Subject: Move version display --- src/mxml2csv.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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.") func init() { flag.Parse() - if *versionFlag { - fmt.Println("Version:", APP_VERSION) - return - } - if *outputFlag == "" { *outputFlag = *inputFlag + ".csv" } @@ -126,6 +121,11 @@ func calcDuration(noteDuration int, divisions int, tempo float64) float64 { func main() { + if *versionFlag { + fmt.Println("Version:", APP_VERSION) + return + } + // read and parse MusicXML file inputFile, err := os.Open(*inputFlag) -- cgit v1.2.3