From 9181c13f11d5842600dc2a0be010b330400bb89a Mon Sep 17 00:00:00 2001
From: Alan De Smet <alan.desmet@ssec.wisc.edu>
Date: Tue, 12 Jul 2016 15:18:19 -0500
Subject: [PATCH] "glance help FOO" is now case insensitive

Command names are case insensitive.  "glance reportGen" and "glance reportgen" are synonymous.

However, help requests remain case sensitive. "glance help reportgen" fails.  This patch makes it case insensitive.
---
 pyglance/glance/compare.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py
index 7edf667..b1ab3dc 100644
--- a/pyglance/glance/compare.py
+++ b/pyglance/glance/compare.py
@@ -1455,8 +1455,8 @@ glance inspectStats A.hdf
         if command is None: 
             print_all_summary = True
         else:
-            if command in commands :
-                print commands[command].__doc__
+            if (command.lower() in lower_locals):
+                print lower_locals[command.lower()].__doc__
             else :
                 print_all_summary = True
 
-- 
GitLab