mib updated this revision to Diff 318072. mib added a comment. Changed short option to `-E|--environment` as @jingham suggested it.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95100/new/ https://reviews.llvm.org/D95100 Files: lldb/docs/use/map.rst lldb/source/Commands/CommandOptionsProcessLaunch.cpp lldb/source/Commands/Options.td Index: lldb/source/Commands/Options.td =================================================================== --- lldb/source/Commands/Options.td +++ lldb/source/Commands/Options.td @@ -655,7 +655,7 @@ Desc<"Set the current working directory to <path> 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.">; Index: lldb/source/Commands/CommandOptionsProcessLaunch.cpp =================================================================== --- lldb/source/Commands/CommandOptionsProcessLaunch.cpp +++ 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; Index: lldb/docs/use/map.rst =================================================================== --- lldb/docs/use/map.rst +++ lldb/docs/use/map.rst @@ -199,7 +199,7 @@ <td class="content"> </td> <td class="content"> - <b>(lldb)</b> process launch -v DEBUG=1 + <b>(lldb)</b> process launch -E DEBUG=1 <br> </td> </tr>
Index: lldb/source/Commands/Options.td =================================================================== --- lldb/source/Commands/Options.td +++ lldb/source/Commands/Options.td @@ -655,7 +655,7 @@ Desc<"Set the current working directory to <path> 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.">; Index: lldb/source/Commands/CommandOptionsProcessLaunch.cpp =================================================================== --- lldb/source/Commands/CommandOptionsProcessLaunch.cpp +++ 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; Index: lldb/docs/use/map.rst =================================================================== --- lldb/docs/use/map.rst +++ lldb/docs/use/map.rst @@ -199,7 +199,7 @@ <td class="content"> </td> <td class="content"> - <b>(lldb)</b> process launch -v DEBUG=1 + <b>(lldb)</b> process launch -E DEBUG=1 <br> </td> </tr>
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits