Skip to content

Commit c351bf5

Browse files
committed
marking required option and fixing description #22 #12
1 parent 7b8ff98 commit c351bf5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tools/generateLandmarks.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737

3838
def get_options(args=None):
39-
optParser = sumolib.options.ArgumentParser(description="Generate parking areas along the edges")
40-
optParser.add_argument("-n", "--net-file", category="input", dest="netfile",
39+
optParser = sumolib.options.ArgumentParser(description="Generate random boundary landmarks for a given network")
40+
optParser.add_argument("-n", "--net-file", category="input", dest="netfile", required=True,
4141
help="define the net file (mandatory)")
4242
optParser.add_argument("-o", "--output-file", category="output", dest="outfile",
4343
default="landmarks.txt", help="define the output filename")
@@ -59,13 +59,7 @@ def get_options(args=None):
5959
help="only use edges which permit the given vehicle class")
6060
optParser.add_argument("-v", "--verbose", category="processing", action="store_true",
6161
default=False, help="tell me what you are doing")
62-
63-
options = optParser.parse_args(args=args)
64-
if not options.netfile:
65-
optParser.print_help()
66-
sys.exit(1)
67-
68-
return options
62+
return optParser.parse_args(args=args)
6963

7064

7165
def filterEdges(options, edges):

0 commit comments

Comments
 (0)