diff options
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/branch_and_merge_new_plugin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/plugins/branch_and_merge_new_plugin.py b/morphlib/plugins/branch_and_merge_new_plugin.py index e5fe52e6..2099f20b 100644 --- a/morphlib/plugins/branch_and_merge_new_plugin.py +++ b/morphlib/plugins/branch_and_merge_new_plugin.py @@ -395,6 +395,11 @@ class SimpleBranchAndMergePlugin(cliapp.Plugin): ''' + if len(args) not in (2, 3): + raise cliapp.AppException('morph edit needs the names of a system,' + ' a stratum and optionally a chunk' + ' as parameters') + system_name = args[0] stratum_name = args[1] chunk_name = args[2] if len(args) == 3 else None |