Skip to content

Commit

Permalink
Tweak buildbot --help / doc for basedir change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunbar committed Dec 28, 2009
1 parent 9c37ea8 commit 6561a08
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 11 additions & 7 deletions buildbot/scripts/runner.py
Expand Up @@ -21,7 +21,11 @@ class MakerBase(usage.Options):
["quiet", "q", "Do not emit the commands being run"],
]

#["basedir", "d", None, "Base directory for the buildmaster"],
longdesc = """
Operates upon the specified <basedir> (or the current directory, if not
specified).
"""

opt_h = usage.Options.opt_help

def parseArgs(self, *args):
Expand Down Expand Up @@ -264,7 +268,7 @@ class UpgradeMasterOptions(MakerBase):
]

def getSynopsis(self):
return "Usage: buildbot upgrade-master [options] <basedir>"
return "Usage: buildbot upgrade-master [options] [<basedir>]"

longdesc = """
This command takes an existing buildmaster working directory and
Expand Down Expand Up @@ -318,7 +322,7 @@ class MasterOptions(MakerBase):
"limit the number of kept old twisted log files"],
]
def getSynopsis(self):
return "Usage: buildbot create-master [options] <basedir>"
return "Usage: buildbot create-master [options] [<basedir>]"

longdesc = """
This command creates a buildmaster working directory and buildbot.tac
Expand Down Expand Up @@ -613,18 +617,18 @@ class StartOptions(MakerBase):
['quiet', 'q', "Don't display startup log messages"],
]
def getSynopsis(self):
return "Usage: buildbot start <basedir>"
return "Usage: buildbot start [<basedir>]"

class StopOptions(MakerBase):
def getSynopsis(self):
return "Usage: buildbot stop <basedir>"
return "Usage: buildbot stop [<basedir>]"

class ReconfigOptions(MakerBase):
optFlags = [
['quiet', 'q', "Don't display log messages about reconfiguration"],
]
def getSynopsis(self):
return "Usage: buildbot reconfig <basedir>"
return "Usage: buildbot reconfig [<basedir>]"



Expand All @@ -633,7 +637,7 @@ class RestartOptions(MakerBase):
['quiet', 'q', "Don't display startup log messages"],
]
def getSynopsis(self):
return "Usage: buildbot restart <basedir>"
return "Usage: buildbot restart [<basedir>]"

class DebugClientOptions(usage.Options):
optFlags = [
Expand Down
7 changes: 7 additions & 0 deletions docs/buildbot.texinfo
Expand Up @@ -1045,6 +1045,13 @@ command:
buildbot start @var{BASEDIR}
@end example

The @var{BASEDIR} is option and can be omitted if the current directory
contains the buildbot configuration (the @file{buildbot.tac} file).

@example
buildbot start
@end example

This command will start the daemon and then return, so normally it
will not produce any output. To verify that the programs are indeed
running, look for a pair of files named @file{twistd.log} and
Expand Down

0 comments on commit 6561a08

Please sign in to comment.