blob: a7b871266cf1269fca26be1fdf35f2ae59e5a49f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python
# coding=utf-8
"""
A sample application for cmd2 demonstrating how to remove one of the built-in runtime settable parameters.
"""
import cmd2
class MyApp(cmd2.Cmd):
def __init__(self):
super().__init__()
self.remove_settable('debug')
if __name__ == '__main__':
import sys
c = MyApp()
sys.exit(c.cmdloop())
|