Implement --version flag
This commit is contained in:
parent
9e9a20b227
commit
9f1d08c54b
2 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import sys
|
||||
import re
|
||||
|
||||
from inspect import getdoc
|
||||
|
|
@ -70,6 +71,11 @@ class TopLevelCommand(Command):
|
|||
stop Stop services
|
||||
|
||||
"""
|
||||
def docopt_options(self):
|
||||
options = super(TopLevelCommand, self).docopt_options()
|
||||
options['version'] = "plum %s" % __version__
|
||||
return options
|
||||
|
||||
def ps(self, options):
|
||||
"""
|
||||
List services and containers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue