Debian Codegraph @

examples/remove_settable.py

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