aboutsummaryrefslogtreecommitdiff
path: root/src/cmdline.opt
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-05 18:03:32 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-05 18:03:32 +0200
commit9b5fb2470499d0d054e6dfab55611057d669ad76 (patch)
treed759a6b838c2f1db0b53c1399b25b45437da2811 /src/cmdline.opt
parenta8c4e813eb17fb28adda734c37ee0c4005601936 (diff)
downloadidest-9b5fb2470499d0d054e6dfab55611057d669ad76.tar.gz
idest-9b5fb2470499d0d054e6dfab55611057d669ad76.tar.bz2
Switch to using libid3tag
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r--src/cmdline.opt28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt
index b4ba979..27a8298 100644
--- a/src/cmdline.opt
+++ b/src/cmdline.opt
@@ -5,55 +5,49 @@ OPTIONS_BEGIN(gnu, "id3ed",
OPTION(title,t,NUMBER,
[<set song title>])
BEGIN
- ID3_COPY(id, title, optarg);
+ title = optarg;
mode = MODE_MOD;
END
OPTION(artist,a,NAME,
[<set artist name>])
BEGIN
- ID3_COPY(id, artist, optarg);
+ artist = optarg;
mode = MODE_MOD;
END
OPTION(album,A,NAME,
[<set album name>])
BEGIN
- ID3_COPY(id, album, optarg);
+ album = optarg;
mode = MODE_MOD;
END
OPTION(year,y,YEAR,
[<set year>])
BEGIN
- ID3_COPY(id, year, optarg);
+ year = optarg;
mode = MODE_MOD;
END
OPTION(comment,c,TEXT,
[<set comment>])
BEGIN
- ID3_COPY(id, comment, optarg);
+ comment = optarg;
mode = MODE_MOD;
END
OPTION(track,T,NUMBER,
[<set track number>])
BEGIN
- id.pad[0] = 0;
- id.track[0] = atoi(optarg);
+ track = atoi(optarg);
mode = MODE_MOD;
END
OPTION(genre,g,NAME,
[<set genre>])
BEGIN
- int n = id3v1_genre_to_n(optarg);
- if (n == -1)
- error(1, 0, "%s: unknown genre", optarg);
- else if (n == -2)
- error(1, 0, "%s: ambiguous genre", optarg);
- id.genre[0] = n;
+ genre = optarg;
mode = MODE_MOD;
END
@@ -63,6 +57,14 @@ BEGIN
mode = MODE_QUERY;
END
+OPTION(id-version,V,VERSION,
+ [<set ID3 version>])
+BEGIN
+ version_option = atoi(optarg);
+ if (version_option > 2)
+ error(1, 0, "unsupported version");
+END
+
OPTIONS_END
void

Return to:

Send suggestions and report system problems to the System administrator.