2001-02-23 21:38:26 +00:00
|
|
|
/* metaflac - Command-line FLAC metadata editor
|
2006-04-25 06:59:33 +00:00
|
|
|
* Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson
|
2001-02-23 21:38:26 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
2002-05-17 06:26:45 +00:00
|
|
|
#if HAVE_CONFIG_H
|
|
|
|
|
# include <config.h>
|
|
|
|
|
#endif
|
2001-02-23 22:03:52 +00:00
|
|
|
|
2002-11-08 05:30:24 +00:00
|
|
|
#include "operations.h"
|
|
|
|
|
#include "options.h"
|
2002-09-17 05:38:08 +00:00
|
|
|
#include <locale.h>
|
2001-02-23 21:38:26 +00:00
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2002-05-23 05:21:19 +00:00
|
|
|
CommandLineOptions options;
|
2002-05-25 02:16:52 +00:00
|
|
|
int ret = 0;
|
2002-05-23 05:21:19 +00:00
|
|
|
|
2005-09-03 03:54:16 +00:00
|
|
|
#ifdef __EMX__
|
|
|
|
|
_response(&argc, &argv);
|
|
|
|
|
_wildcard(&argc, &argv);
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-09-17 05:38:08 +00:00
|
|
|
setlocale(LC_ALL, "");
|
2002-05-23 05:21:19 +00:00
|
|
|
init_options(&options);
|
|
|
|
|
|
2002-05-25 02:16:52 +00:00
|
|
|
if(parse_options(argc, argv, &options))
|
|
|
|
|
ret = !do_operations(&options);
|
2002-05-23 05:21:19 +00:00
|
|
|
|
|
|
|
|
free_options(&options);
|
|
|
|
|
|
|
|
|
|
return ret;
|
2002-05-17 06:26:45 +00:00
|
|
|
}
|