summaryrefslogtreecommitdiff
path: root/examples/paged_output.py
diff options
context:
space:
mode:
authorxNinjaKittyx <sangbumahn@gmail.com>2019-06-24 17:54:15 -0700
committerxNinjaKittyx <sangbumahn@gmail.com>2019-06-24 17:54:15 -0700
commite8206628eefe8234cb5118807c6f40e983c2a316 (patch)
tree455fda269bf89e5a6195059083179b8b44d51754 /examples/paged_output.py
parentbef07746e33da9def33d814913891384a545a95c (diff)
downloadcmd2-git-e8206628eefe8234cb5118807c6f40e983c2a316.tar.gz
Initial Commit for Issue 698
Diffstat (limited to 'examples/paged_output.py')
-rwxr-xr-xexamples/paged_output.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/paged_output.py b/examples/paged_output.py
index b3824012..4986168b 100755
--- a/examples/paged_output.py
+++ b/examples/paged_output.py
@@ -22,7 +22,7 @@ class PagedOutput(cmd2.Cmd):
text = f.read()
self.ppaged(text, chop=chop)
except FileNotFoundError:
- self.perror('ERROR: file {!r} not found'.format(filename), traceback_war=False)
+ self.pexcept('ERROR: file {!r} not found'.format(filename), traceback_war=False)
@cmd2.with_argument_list
def do_page_wrap(self, args: List[str]):
@@ -31,7 +31,7 @@ class PagedOutput(cmd2.Cmd):
Usage: page_wrap <file_path>
"""
if not args:
- self.perror('page_wrap requires a path to a file as an argument', traceback_war=False)
+ self.pexcept('page_wrap requires a path to a file as an argument', traceback_war=False)
return
self.page_file(args[0], chop=False)
@@ -46,7 +46,7 @@ class PagedOutput(cmd2.Cmd):
Usage: page_chop <file_path>
"""
if not args:
- self.perror('page_truncate requires a path to a file as an argument', traceback_war=False)
+ self.pexcept('page_truncate requires a path to a file as an argument', traceback_war=False)
return
self.page_file(args[0], chop=True)