Commit 67a53d69 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/tools: print version of wrs_checkcfg

Also pass -v/-q to wrs_msg_init to get verbose messages from the libwr.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent fc398e6c
...@@ -12,12 +12,21 @@ int main(int argc, char **argv) ...@@ -12,12 +12,21 @@ int main(int argc, char **argv)
{ {
int err, verbose = 0; int err, verbose = 0;
wrs_msg_init(1, argv); wrs_msg_init(argc, argv);
me_lazy: me_lazy:
if (argc < 2 || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { if (argc < 2 || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {
fprintf(stderr, "%s: Use: \"%s [-v] <dotcfg> [<Kconfig>]\"\n", printf("%s: Use: \"%s [-V] [-v] <dotcfg> [<Kconfig>]\"\n",
argv[0], argv[0]); argv[0], argv[0]);
printf("<dotcfg> -- path to dot-config file to be checked\n");
printf("<Kconfig> -- path to Kconfig file\n");
printf("-v -- verbose\n");
printf("-V -- print version\n");
exit(1);
}
if (!strcmp(argv[1], "-V")) {
printf("Version: %s\n", __GIT_VER__); /* see Makefile */
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment