blob: 6a2e4062236e1a349f3d1d5c900d976b079b1f0e (
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())
|