Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonson Wong committed Mar 28, 2024
1 parent 8bf7304 commit 6fe2b76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src_tool/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int get_main(int argc, char **argv, struct program_meta *meta) {
{"benchmark", no_argument, NULL, 'e' }, //9
{"index", required_argument, NULL, 0 }, //10
{"cache", required_argument, NULL, 0 }, //11
{"retry", required_argument, NULL, 'r' }, //12
{"retry", required_argument, NULL, 'r' }, //12
{"wait", required_argument, NULL, 'w' }, //13
{NULL, 0, NULL, 0 }
};
Expand Down
19 changes: 8 additions & 11 deletions src_tool/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file main.c
* @brief main programme
* @author Sasha Jenner ([email protected]), Hasindu Gamaarachchi ([email protected])
* @author Sasha Jenner ([email protected]), Hasindu Gamaarachchi ([email protected]), Bonson Wong ([email protected])
* @date 27/02/2021
*/

Expand Down Expand Up @@ -108,17 +108,17 @@ int main(const int argc, char **argv) {

} else {
const struct command cmds[] = {
{"get", get_main},
{"head", head_main},
{"reads", reads_main},
{"get", get_main},
{"head", head_main},
{"reads", reads_main},
};
const size_t num_cmds = sizeof (cmds) / sizeof (*cmds);

static struct option long_opts[] = {
{"help", no_argument, NULL, 'h' }, //0
{"verbose", required_argument, NULL, 'v'}, //1
{"version", no_argument, NULL, 'V'}, //2
{"cite", no_argument, NULL, 0}, //3
{"help", no_argument, NULL, 'h'}, //0
{"verbose", required_argument, NULL, 'v'}, //1
{"version", no_argument, NULL, 'V'}, //2
{"cite", no_argument, NULL, 0}, //3
{NULL, 0, NULL, 0 }
};

Expand All @@ -136,9 +136,6 @@ int main(const int argc, char **argv) {
DEBUG("displaying large help message%s","");
fprintf(stdout, HELP_LARGE_MSG, argv[0], argv[0]);
exit(EXIT_SUCCESS);
// ret = EXIT_SUCCESS;
// break_flag = true;
// break;
case 'v':
slow5curl_verbosity_level = atoi(optarg);
print_args(argc,argv);
Expand Down

0 comments on commit 6fe2b76

Please sign in to comment.