X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/blobdiff_plain/0b3e11a806e704fa373f0549fb3b6164d45c564a..b3320a26c57711ae7167f4549338bd0792dbe570:/Sources/main.swift?ds=sidebyside diff --git a/Sources/main.swift b/Sources/main.swift index 47720ad..e4b2760 100644 --- a/Sources/main.swift +++ b/Sources/main.swift @@ -80,10 +80,14 @@ func main() { if let titleFlag = flags["title"] as? BoolOption { if titleFlag.value == true { - Lyricli.printTitle() + Lyricli.showTitle = true } } + // Remove any flags so anyone after this gets the unprocessed values + let programName: [String] = [CommandLine.arguments[0]] + CommandLine.arguments = programName + parser.unparsedArguments + Lyricli.printLyrics() }