summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcutter7
1 files changed, 5 insertions, 2 deletions
diff --git a/cutter b/cutter
index fd02de9..fc53c14 100755
--- a/cutter
+++ b/cutter
@@ -185,11 +185,14 @@ def parse_args():
parser.add_option_group(format)
tag = OptionGroup(parser, "Tag options")
- tag_options = ["album", "artist", "date", "genre",
+ tag_options = ["album", "artist", ("date", "year"), "genre",
"comment", "composer", "albumartist"]
for opt in tag_options:
- tag.add_option("--" + opt, dest=opt, default="")
+ if type(opt) in (list, tuple):
+ tag.add_option(*["--" + s for s in opt], dest=opt[0], default="")
+ else:
+ tag.add_option("--" + opt, dest=opt, default="")
parser.add_option_group(tag)