diff options
-rw-r--r-- | bm | 5 | ||||
-rw-r--r-- | man/bm.8 | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -23,13 +23,14 @@ def passtrough(option, opt, val, parser): del parser.rargs[:option.nargs] def parse_options(): + workDir = os.getcwd() parser = OptionParser("%prog [OPTIONS] [<rpm dir>] [<spec file>] [<srpm file>]", version="%prog "+VERSION) parser.add_option("-a", dest="mode", action="store_const", const="all", help="do everything and build source and binary packages" " (default)", default="all") parser.add_option("-u", dest="mode", action="store_const", const="unpack", - help="just unpack") + help="just unpack - default directory is \""+workDir+"\"") parser.add_option("-p", dest="mode", action="store_const", const="prep", help="unpack and run %prep stage") parser.add_option("-r", dest="mode", action="store_const", const="generate_buildrequires", @@ -49,7 +50,7 @@ def parse_options(): parser.add_option("-o", dest="options", action="append", metavar="OPT", default=[], help="pass given parameters directly to rpm") - parser.add_option("--unpack-dir", metavar="DIR", default="/var/tmp", + parser.add_option("--unpack-dir", metavar="DIR", default=workDir, help="specify directory where to unpack file(s)") parser.add_option("--build-log", metavar="FILE", help="specify where to put the build log for each package") @@ -30,7 +30,7 @@ do everything and build source and binary packages (default) .TP .B \fB-u\fP -just unpack +just unpack - default directory is the current working directory .TP .B \fB-p\fP |