aboutsummaryrefslogtreecommitdiffstats
path: root/ghw/ghwdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'ghw/ghwdump.c')
-rw-r--r--ghw/ghwdump.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ghw/ghwdump.c b/ghw/ghwdump.c
index fe74e5f9a..fa385af52 100644
--- a/ghw/ghwdump.c
+++ b/ghw/ghwdump.c
@@ -163,6 +163,14 @@ main (int argc, char **argv)
signal_set = NULL;
filter_done = 0;
+ /* Disp help if there is only an help option. */
+ if (argc == 2
+ && (strcmp (argv[1], "--help") == 0 || strcmp (argv[1], "-h") == 0))
+ {
+ usage ();
+ exit (0);
+ }
+
while (1)
{
int c;