Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
i-evi committed Oct 2, 2020
1 parent df8d09b commit 934b867
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions demo/lenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void arg_parser(int argc, char* const argv[])
}
if (!strlen(image_path) || !strlen(parameters_path)) {
printf("error: incomplete argument\n");
printf("run 'lenet -h' for help.\n");
exit(EXIT_FAILURE);
}
}
Expand Down
3 changes: 2 additions & 1 deletion demo/lenet_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void arg_parser(int argc, char* const argv[])
while ((c = parg_getopt(&ps, argc, argv, "hp:o:v")) != -1) {
switch (c) {
case 'h':
printf("Usage: [-h] -p parameters-path -o pack-name\n");
printf("Usage: [-h] -p pathname -o filename\n");
printf("-h: Displays this message\n");
printf("-p: Choose parameters file path\n");
printf("-o: Output file name\n");
Expand Down Expand Up @@ -58,6 +58,7 @@ void arg_parser(int argc, char* const argv[])
}
if (!strlen(parameters_path) || !strlen(parameters_pack)) {
printf("error: incomplete argument\n");
printf("run 'lenet_pack -h' for help.\n");
exit(EXIT_FAILURE);
}
}
Expand Down
1 change: 1 addition & 0 deletions demo/lenet_unpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void arg_parser(int argc, char* const argv[])
}
if (!strlen(image_path) || !strlen(parameters_path)) {
printf("error: incomplete argument\n");
printf("run 'lenet_unpack -h' for help.\n");
exit(EXIT_FAILURE);
}
}
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ util_log.o util_vec.o util_image.o global_fn_cfg.o
CATCOON_A = libcatcoon.a

APPS_DEMO = simple lenet lenet_pack lenet_unpack
APPS_UTIL = packager listpkg
APPS_UTIL = lspkg mkpkg

APP_NAMES = $(APPS_DEMO) $(APPS_UTIL)
APP_INC += $(INC)
Expand Down
4 changes: 2 additions & 2 deletions util/listpkg.c → util/lspkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
int main(int argc, char const *argv[])
{
if (argc != 2) {
printf("Usage: listpkg package-file\n");
exit(-1);
printf("Usage: lspkg package-file\n");
exit(EXIT_FAILURE);
}
cc_tsrmgr_import(argv[1]);
cc_tsrmgr_list();
Expand Down
3 changes: 2 additions & 1 deletion util/packager.c → util/mkpkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void arg_parser(int argc, char* const argv[])
while ((c = parg_getopt(&ps, argc, argv, "hp:o:v")) != -1) {
switch (c) {
case 'h':
printf("Usage: [-h] -p parameters-path -o pack-name\n");
printf("Usage: [-h] -p pathname -o filename\n");
printf("-h: Displays this message\n");
printf("-p: Choose parameters file path\n");
printf("-o: Output file name\n");
Expand Down Expand Up @@ -61,6 +61,7 @@ void arg_parser(int argc, char* const argv[])
}
if (!strlen(parameters_path) || !strlen(parameters_pack)) {
printf("error: incomplete argument\n");
printf("run 'mkpkg -h' for help.\n");
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 934b867

Please sign in to comment.