Add profile to the usage text

Profiles are hinted to by the list profiles --profiles option but it
wasn't clear how to feed those back into bindep. Add [profile] to the
usage string to make this a bit more clear.

Change-Id: Idaa6c6992b12bce9d350cdf7f5d960f28ecb4bec
This commit is contained in:
Clark Boylan 2015-07-17 16:00:10 -07:00 committed by Jeremy Stanley
parent 0748478190
commit 40208b9143
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ logging.basicConfig(
def main(depends=None):
parser = optparse.OptionParser(version="%%prog %s" % bindep.version)
usage = "Usage: %prog [options] [profile]"
parser = optparse.OptionParser(
usage=usage, version="%%prog %s" % bindep.version)
parser.add_option(
"-b", "--brief", action="store_true", dest="brief",
help="List only missing packages one per line.")