summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 774a27b3a..9a5a1aa5b 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -2280,8 +2280,6 @@ int main(int argc, char *argv[])
}
mod->mode = OUTPUT_CACHES;
break;
- case 'h':
- usage();
case 'J':
mod->json = 1;
break;
@@ -2308,12 +2306,14 @@ int main(int argc, char *argv[])
case 'y':
mod->physical = 1;
break;
- case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
case OPT_OUTPUT_ALL:
all = 1;
break;
+
+ case 'h':
+ usage();
+ case 'V':
+ print_version(EXIT_SUCCESS);
default:
errtryhelp(EXIT_FAILURE);
}