-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
35 lines (26 loc) · 764 Bytes
/
main.go
File metadata and controls
35 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"flag"
"fmt"
"os"
)
func main() {
defer os.Exit(0)
// parse command line for both settings and csv
csvPath := flag.String("csv", "",
"The path of the CSV file in which are defined the custom Fujifilm simulation recipes")
settingsPath := flag.String("s", "",
"The path of your settings in YAML in which your camera name is set")
flag.Parse()
if len(*csvPath) == 0 || len(*settingsPath) == 0 {
flag.PrintDefaults()
os.Exit(2)
}
fmt.Printf("Settings: %s\n", *settingsPath)
fmt.Printf("CSV to parse: %s\n", *csvPath)
// load the user settings
settings := loadUserSettings(settingsPath)
// load the film simulation recipes from the CSV
recipes := loadCSV(csvPath)
generateXMLSimulations(&settings, recipes)
}