From 57637878408c890bc47344d92f6af28c7a0b0081 Mon Sep 17 00:00:00 2001 From: Alexis Paques Date: Thu, 25 Apr 2019 09:10:58 +0200 Subject: [PATCH] Adding narg to allow empty arguments --- msg/tools/generate_microRTPS_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg/tools/generate_microRTPS_bridge.py b/msg/tools/generate_microRTPS_bridge.py index 7ba2ec54d4..5a456fb990 100644 --- a/msg/tools/generate_microRTPS_bridge.py +++ b/msg/tools/generate_microRTPS_bridge.py @@ -167,7 +167,7 @@ parser.add_argument("-o", "--agent-outdir", dest='agentdir', type=str, help="Agent output dir, by default using relative path 'src/modules/micrortps_bridge/micrortps_agent'", default=default_agent_out) parser.add_argument("-u", "--client-outdir", dest='clientdir', type=str, help="Client output dir, by default using relative path 'src/modules/micrortps_bridge/micrortps_client'", default=default_client_out) -parser.add_argument("-f", "--fastrtpsgen-dir", dest='fastrtpsgen', type=str, +parser.add_argument("-f", "--fastrtpsgen-dir", dest='fastrtpsgen', type=str, nargs='?', help="fastrtpsgen installation dir, only needed if fastrtpsgen is not in PATH, by default empty", default="") parser.add_argument("-g", "--fastrtpsgen-include", dest='fastrtpsgen_include', type=str, help="directory(ies) to add to preprocessor include paths of fastrtpsgen, by default empty", default="")