+ if let enableSourceFlag = flags["enableSource"] as? StringOption {
+ if let source = enableSourceFlag.value {
+ Lyricli.enableSource(source)
+ exit(0)
+ }
+ }
+
+ if let disableSourceFlag = flags["disableSource"] as? StringOption {
+ if let source = disableSourceFlag.value {
+ Lyricli.disableSource(source)
+ exit(0)
+ }
+ }
+
+ if let resetSourceFlag = flags["resetSource"] as? StringOption {
+ if let source = resetSourceFlag.value {
+ Lyricli.resetSource(source)
+ exit(0)
+ }
+ }
+
+ if let titleFlag = flags["title"] as? BoolOption {
+ if titleFlag.value == true {
+ Lyricli.printTitle()
+ }
+ }
+
+ // Remove any flags so anyone after this gets the unprocessed values
+ let programName: [String] = [CommandLine.arguments[0]]
+ CommandLine.arguments = programName + parser.unparsedArguments
+
+ Lyricli.printLyrics()