tab or space indentation, please choose
This commit is contained in:
parent
27378d668d
commit
6ec380516c
|
|
@ -53,9 +53,9 @@ struct arguments {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LIST_CABLE 1
|
#define LIST_CABLE 1
|
||||||
#define LIST_BOARD 2
|
#define LIST_BOARD 2
|
||||||
#define LIST_FPGA 3
|
#define LIST_FPGA 3
|
||||||
#define DETECT 4
|
#define DETECT 4
|
||||||
|
|
||||||
const char *argp_program_version = "openFPGALoader 1.0";
|
const char *argp_program_version = "openFPGALoader 1.0";
|
||||||
const char *argp_program_bug_address = "<gwenhael.goavec-merou@trabucayre.com>";
|
const char *argp_program_bug_address = "<gwenhael.goavec-merou@trabucayre.com>";
|
||||||
|
|
@ -240,9 +240,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
|
||||||
break;
|
break;
|
||||||
case ARGP_KEY_END:
|
case ARGP_KEY_END:
|
||||||
if (arguments->bit_file.empty() &&
|
if (arguments->bit_file.empty() &&
|
||||||
!arguments->is_list_command &&
|
!arguments->is_list_command &&
|
||||||
!arguments->detect &&
|
!arguments->detect &&
|
||||||
!arguments->reset) {
|
!arguments->reset) {
|
||||||
cout << "Error: bitfile not specified" << endl;
|
cout << "Error: bitfile not specified" << endl;
|
||||||
argp_usage(state);
|
argp_usage(state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue