summaryrefslogtreecommitdiff
path: root/examples/case_sensitive.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-02 23:47:36 -0500
committerGitHub <noreply@github.com>2018-03-02 23:47:36 -0500
commit59a59233f7005491ea4187b4e8e120baa0e3905d (patch)
tree0e60c9821ff135fd3783e02773fe2380591c9f1e /examples/case_sensitive.py
parent40b52252a3108c8989afd6ca7e64ce9d4116cb4f (diff)
parent254cc0892a613e6681dad3802570d8e952a37075 (diff)
downloadcmd2-git-59a59233f7005491ea4187b4e8e120baa0e3905d.tar.gz
Merge pull request #295 from python-cmd2/case_sensitivity
Removed support for case-insensitive command parsing
Diffstat (limited to 'examples/case_sensitive.py')
-rwxr-xr-xexamples/case_sensitive.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/case_sensitive.py b/examples/case_sensitive.py
deleted file mode 100755
index 828ebc06..00000000
--- a/examples/case_sensitive.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-# coding=utf-8
-"""A sample application demonstrating when commands are set to be case sensitive.
-
-By default cmd2 parses commands in a case-insensitive manner. But this behavior can be changed.
-"""
-
-import cmd2
-
-
-class CaseSensitiveApp(cmd2.Cmd):
- """ Example cmd2 application where commands are case-sensitive."""
-
- def __init__(self):
- # Set this before calling the super class __init__()
- self.case_insensitive = False
-
- cmd2.Cmd.__init__(self)
-
- self.debug = True
-
-
-if __name__ == '__main__':
- app = CaseSensitiveApp()
- app.cmdloop()