Skip to content

Commit dbec656

Browse files
committed
Add 'show' alias for 'view'
1 parent 44e2c4c commit dbec656

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

viscm/gui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,8 @@ def main(argv):
824824
else:
825825
cmap = plt.get_cmap(args.colormap)
826826

827-
if args.action == "view":
827+
# Easter egg! I keep typing 'show' instead of 'view' so accept both
828+
if args.action in ("view", "show"):
828829
if cmap is None:
829830
sys.exit("Please specify a colormap")
830831
v = viscm(cmap)

0 commit comments

Comments
 (0)