From d5cc80059218e1b66749b0b61c722d0480e03a88 Mon Sep 17 00:00:00 2001 From: mikeos Date: Sun, 22 Sep 2013 19:21:30 +0400 Subject: add --year option (alias for --date) --- cutter | 7 +++++-- 1 file 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) -- cgit v1.2.3-70-g09d2