]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Sources/lyricli/lyricli_command.swift
Use single word long options
[rbdr/lyricli] / Sources / lyricli / lyricli_command.swift
index 28ad44ae8c60456e931921293a5025b5fb01dc24..88f9c7b01bc01f8e65d55d1ea599c07c7d548196 100644 (file)
@@ -6,19 +6,19 @@ class LyricliCommand: Command {
     // Flags
     let version = Flag(short: "v", long: "version", help: "Prints the version.")
     let showTitle = Flag(short: "t", long: "title", help: "Shows title of song if true")
-    let listSources = Flag(short: "l", long: "listSources", help: "Lists all sources")
+    let listSources = Flag(short: "l", long: "list", help: "Lists all sources")
 
     // Named Arguments
     let enableSource = Argument<String>(name: "source",
-        kind: .named(short: "e", long: "enableSource"),
+        kind: .named(short: "e", long: "enable"),
         optional: true,
         help: "Enables a source")
     let disableSource = Argument<String>(name: "source",
-        kind: .named(short: "d", long: "disableSource"),
+        kind: .named(short: "d", long: "disable"),
         optional: true,
         help: "Disables a source")
     let resetSource = Argument<String>(name: "source",
-        kind: .named(short: "r", long: "resetSource"),
+        kind: .named(short: "r", long: "reset"),
         optional: true,
         help: "Resets a source")