diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-09-07 16:05:11 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-09-08 16:14:45 +0100 |
commit | de2470ea4fb7b7df698e0f7651cb250707709c05 (patch) | |
tree | a80a2b5ee3aa08d45ee3f201c688ef8fb913febe /tools/intel_reg.c | |
parent | 9ecb50e5c55c4d287f9f083b41d5e51b6a9d9ad2 (diff) |
intel_reg: ensure "intel_reg help" always works
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/intel_reg.c')
-rw-r--r-- | tools/intel_reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_reg.c b/tools/intel_reg.c index 95760db8..2b3c686d 100644 --- a/tools/intel_reg.c +++ b/tools/intel_reg.c @@ -865,7 +865,7 @@ int main(int argc, char *argv[]) argc -= optind; argv += optind; - if (help) + if (help || (argc > 0 && strcmp(argv[0], "help") == 0)) return intel_reg_help(&config, argc, argv); if (argc == 0) { |