/***************************************************************************
 *   copyright           : (C) 2003 by Hendrik Sattler                     *
 *   mail                : post@hendrik-sattler.de                         *
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef SCMXX_OPT_H
#define SCMXX_OPT_H

#include "options.h"

extern struct args_def_type args_type_list[];
extern struct args_def args_list[];

#define OUTPUT_TEXT 0
#define OUTPUT_CSV  1

struct args_t {
  char* system_charset;
  int output;

  unsigned int help :1;
  unsigned int version :1;
};

/* a function to init the variables in the struct
 */
void args_init ();
void smi_use_envvars ();
char** smi_args_parse (int argc, char** argv);
struct args_t* smi_get_args ();

#endif
