diff --git a/lldb/docs/use/map.rst b/lldb/docs/use/map.rst --- a/lldb/docs/use/map.rst +++ b/lldb/docs/use/map.rst @@ -199,7 +199,7 @@ - (lldb) process launch -v DEBUG=1 + (lldb) process launch -E DEBUG=1
diff --git a/lldb/source/Commands/CommandOptionsProcessLaunch.cpp b/lldb/source/Commands/CommandOptionsProcessLaunch.cpp --- a/lldb/source/Commands/CommandOptionsProcessLaunch.cpp +++ b/lldb/source/Commands/CommandOptionsProcessLaunch.cpp @@ -130,7 +130,7 @@ launch_info.SetShell(HostInfo::GetDefaultShell()); break; - case 'v': + case 'E': launch_info.GetEnvironment().insert(option_arg); break; diff --git a/lldb/source/Commands/Options.td b/lldb/source/Commands/Options.td --- a/lldb/source/Commands/Options.td +++ b/lldb/source/Commands/Options.td @@ -655,7 +655,7 @@ Desc<"Set the current working directory to when running the inferior.">; def process_launch_arch : Option<"arch", "a">, Arg<"Architecture">, Desc<"Set the architecture for the process to launch when ambiguous.">; - def process_launch_environment : Option<"environment", "v">, + def process_launch_environment : Option<"environment", "E">, Arg<"None">, Desc<"Specify an environment variable name/value string " "(--environment NAME=VALUE). Can be specified multiple times for subsequent " "environment entries.">;