summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/clioptions_module.py4
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