Skip to content

Commit

Permalink
marking required option and fixing description #22 #12
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jan 26, 2025
1 parent 7b8ff98 commit c351bf5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tools/generateLandmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@


def get_options(args=None):
optParser = sumolib.options.ArgumentParser(description="Generate parking areas along the edges")
optParser.add_argument("-n", "--net-file", category="input", dest="netfile",
optParser = sumolib.options.ArgumentParser(description="Generate random boundary landmarks for a given network")
optParser.add_argument("-n", "--net-file", category="input", dest="netfile", required=True,
help="define the net file (mandatory)")
optParser.add_argument("-o", "--output-file", category="output", dest="outfile",
default="landmarks.txt", help="define the output filename")
Expand All @@ -59,13 +59,7 @@ def get_options(args=None):
help="only use edges which permit the given vehicle class")
optParser.add_argument("-v", "--verbose", category="processing", action="store_true",
default=False, help="tell me what you are doing")

options = optParser.parse_args(args=args)
if not options.netfile:
optParser.print_help()
sys.exit(1)

return options
return optParser.parse_args(args=args)


def filterEdges(options, edges):
Expand Down

0 comments on commit c351bf5

Please sign in to comment.