summaryrefslogtreecommitdiff
path: root/morphlib/plugins
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-20 16:54:37 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-21 16:02:08 +0100
commitdf5a286be1df12261b36a05227bbed5d8a3ee68f (patch)
treec74e8a7cd71fbbccab01e1a80f89d046ea658a03 /morphlib/plugins
parent6b63f1a4cf9ddbbe6f6244028545766a9603de90 (diff)
downloadmorph-df5a286be1df12261b36a05227bbed5d8a3ee68f.tar.gz
morph foreach: Mention -- in docstring
It's not obvious (to non-unix-beards) that -- should be used to pass commandline arguments, we should be careful to make it clear in the documentation.
Diffstat (limited to 'morphlib/plugins')
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index cf54e2e4..00813350 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -958,6 +958,11 @@ class BranchAndMergePlugin(cliapp.Plugin):
For simplicity, this simply iterates repositories in the directory
rather than walking through the morphologies as 'morph merge' does.
+ Morph will interpret switch arguments, so you should separate the
+ command with --, as in the following example:
+
+ morph foreach -- git status --short
+
'''
if len(args) == 0: