summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 3a198f8c..b5bb13a9 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1455,7 +1455,13 @@ class Cmd(cmd.Cmd):
self.do_load('%s %s' % (targetname, args))
def do_load(self, arg=None):
- """Runs script of command(s) from a file or URL."""
+ """Runs script of command(s) from a file or URL.
+
+ Script should contain one command per line, just like command would be typed in console.
+
+ :param arg: str - Path of file to load and run commands from.
+ :return: bool - True if application should stop (script contained 'quit', typically False to continue running.
+ """
# If arg is None or arg is an empty string, use the default filename
if not arg:
targetname = self.default_file_name