Routing: Move origin/destination type default into module
[pywienerlinien] / scotty
diff --git a/scotty b/scotty
index 32eb1bc..9a6ecbe 100755 (executable)
--- a/scotty
+++ b/scotty
@@ -8,8 +8,8 @@ from gotovienna.utils import *
 from gotovienna.routing import *
 
 parser = argparse.ArgumentParser(description='Get public transport route for Vienna')
-parser.add_argument('-ot', metavar='type', type=str, help='origin type: %s' % ' | '.join(POSITION_TYPES), default='stop', choices=POSITION_TYPES)
-parser.add_argument('-dt', metavar='type', type=str, help='destination type: %s' % ' | '.join(POSITION_TYPES), default='stop', choices=POSITION_TYPES)
+parser.add_argument('-ot', metavar='type', type=str, help='origin type: %s' % ' | '.join(POSITION_TYPES), default=None, choices=POSITION_TYPES)
+parser.add_argument('-dt', metavar='type', type=str, help='destination type: %s' % ' | '.join(POSITION_TYPES), default=None, choices=POSITION_TYPES)
 parser.add_argument('origin', nargs='?', help='origin station name')
 parser.add_argument('destination', nargs='?', help='destination station name')