We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d84ec38 commit 7b3262fCopy full SHA for 7b3262f
utils/hwloc/hwloc-info.c
@@ -685,6 +685,9 @@ main (int argc, char *argv[])
685
while (argc >= 1) {
686
if (!strcmp(argv[0], "all") || !strcmp(argv[0], "root")) {
687
hwloc_calc_process_location_info_cb(&lcontext, NULL, hwloc_get_root_obj(topology));
688
+ } else if (*argv[0] == '-') {
689
+ fprintf(stderr, "Cannot handle command-line option %s after some locations.\n", argv[0]);
690
+ return EXIT_FAILURE;
691
} else {
692
/* try to match a type/depth followed by a special character */
693
typelen = strspn(argv[0], "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
0 commit comments