summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-04 13:14:00 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-05 14:35:46 +0000
commit52d3f3dae9b96a86070292e7f49af8a635aff323 (patch)
tree15c26c46dd08f1430a8dd689748fee47a0a5ee25
parent53358c2d1ae4a96cadc9a5a388bbafa7549b633a (diff)
downloaddefinitions-52d3f3dae9b96a86070292e7f49af8a635aff323.tar.gz
Improve docstring for "morph init"
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index 4bb54d4e..a6e3ad78 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -547,7 +547,28 @@ class BranchAndMergePlugin(cliapp.Plugin):
return system_key, metadata_cache_id_lookup
def init(self, args):
- '''Initialize a workspace directory.'''
+ '''Initialize a workspace directory.
+
+ Command line argument:
+
+ * `DIR` is the directory to use as a workspace, and defaults to
+ the current directory.
+
+ This creates a workspace, either in the current working directory,
+ or if `DIR` is given, in that directory. If the directory doesn't
+ exist, it is created. If it does exist, it must be empty.
+
+ You need to run `morph init` to initialise a workspace, or none
+ of the other system branching tools will work: they all assume
+ an existing workspace. Note that a workspace only exists on your
+ machine, not on the git server.
+
+ Example:
+
+ morph init /src/workspace
+ cd /src/workspace
+
+ '''
if not args:
args = ['.']