summaryrefslogtreecommitdiff
path: root/docs/features/scripting.rst
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-07-06 17:52:19 -0600
committerGitHub <noreply@github.com>2019-07-06 17:52:19 -0600
commit34975b52e769514b44ee8c13147a22961e68e7a7 (patch)
treefe93e18257514efc25e8539d5005af34ef4dcd3b /docs/features/scripting.rst
parente18013e7f6be6721531cde163ec4697eac247270 (diff)
parent0ae0567c48c0519cbecca8448df0caa32f530906 (diff)
downloadcmd2-git-34975b52e769514b44ee8c13147a22961e68e7a7.tar.gz
Merge pull request #712 from python-cmd2/docstructure
New Documentation Structure
Diffstat (limited to 'docs/features/scripting.rst')
-rw-r--r--docs/features/scripting.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/features/scripting.rst b/docs/features/scripting.rst
new file mode 100644
index 00000000..73566cde
--- /dev/null
+++ b/docs/features/scripting.rst
@@ -0,0 +1,20 @@
+Scripting
+=========
+
+Document use cases and commands for ``run_script`` and ``run_pyscript``
+
+Comments
+--------
+
+Any command line input where the first non-whitespace character is a `#` will
+be treated as a comment. This means any `#` character appearing later in the
+command will be treated as a literal. The same applies to a `#` in the middle
+of a multiline command, even if it is the first character on a line.
+
+Comments can be useful in :ref:`scripts`, but would be pointless within an
+interactive session.
+
+::
+
+ (Cmd) # this is a comment
+ (Cmd) this # is not a comment