diff options
author | Mart Raudsepp <leio@gentoo.org> | 2008-09-28 07:36:34 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2008-09-28 07:38:11 +0300 |
commit | 3d412d0b94b921334b3e6dd706570cb38b410ca1 (patch) | |
tree | 0dcb62ce247c1172bdc9d07ff83ff18445103c1b | |
parent | "Beautify" the html output page (diff) | |
download | gentoo-bumpchecker-3d412d0b94b921334b3e6dd706570cb38b410ca1.tar.gz gentoo-bumpchecker-3d412d0b94b921334b3e6dd706570cb38b410ca1.tar.bz2 gentoo-bumpchecker-3d412d0b94b921334b3e6dd706570cb38b410ca1.zip |
Specifying output file is not optional right now - require it
-rw-r--r-- | modules/clioptions_module.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/clioptions_module.py b/modules/clioptions_module.py index ea57c66..2f0b1a2 100644 --- a/modules/clioptions_module.py +++ b/modules/clioptions_module.py @@ -7,7 +7,7 @@ from optparse import OptionParser class Options: def __init__(self): - usage = "usage: %prog [-qkn] [-o <filename>] -r <release>" + usage = "usage: %prog [-qkn] -o <filename> -r <release>" self.parser = OptionParser(usage=usage) self.setup_parser() @@ -39,6 +39,8 @@ class Options: help="Overlay to scan in addition to PORTDIR. Specify multiple times to scan more than one overlay.") def get_arguments(self): + if (self.options.output == None): + self.parser.error("No output file") if (self.options.release_number == None): self.parser.error("No revision") return self.options |