blob: 30977555cca1210fa60521b884a00df5013ac6f6 [file] [log] [blame]
Josh Coalson4d3b90f2001-02-23 21:38:26 +00001/* metaflac - Command-line FLAC metadata editor
Josh Coalson0395dac2006-04-25 06:59:33 +00002 * Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson
Josh Coalson4d3b90f2001-02-23 21:38:26 +00003 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
Josh Coalsonef0bc772002-05-17 06:26:45 +000019#if HAVE_CONFIG_H
20# include <config.h>
21#endif
22
Josh Coalson8c40b952002-11-08 05:30:24 +000023#include "operations.h"
24#include "options.h"
Josh Coalson2a422812002-09-17 05:38:08 +000025#include <locale.h>
Josh Coalson4d3b90f2001-02-23 21:38:26 +000026
27int main(int argc, char *argv[])
28{
Josh Coalsone959a5d2002-05-23 05:21:19 +000029 CommandLineOptions options;
Josh Coalsona8942052002-05-25 02:16:52 +000030 int ret = 0;
Josh Coalsone959a5d2002-05-23 05:21:19 +000031
Josh Coalsone9a638d2005-09-03 03:54:16 +000032#ifdef __EMX__
33 _response(&argc, &argv);
34 _wildcard(&argc, &argv);
35#endif
36
Josh Coalson2a422812002-09-17 05:38:08 +000037 setlocale(LC_ALL, "");
Josh Coalsone959a5d2002-05-23 05:21:19 +000038 init_options(&options);
39
Josh Coalsona8942052002-05-25 02:16:52 +000040 if(parse_options(argc, argv, &options))
41 ret = !do_operations(&options);
Josh Coalsone959a5d2002-05-23 05:21:19 +000042
43 free_options(&options);
44
45 return ret;
Josh Coalson4d3b90f2001-02-23 21:38:26 +000046}