blob: aef0b8daebb0b292dda098c01be116025af1ce48 [file] [log] [blame]
/*
* This file is part of the flashprog project.
*
* 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.
*/
#ifndef FLASHPROG_CLI_H
#define FLASHPROG_CLI_H
enum {
OPTION_CHIP = 'c',
OPTION_PROGRAMMER = 'p',
};
struct flash_args {
char *chip;
char *prog_name;
char *prog_args;
};
int cli_parse_flash_args(struct flash_args *, int opt, const char *optarg);
#endif