[lldb] Improve help for platform put-file

Previously it was not clear what arguments this required, or what it would do if you didn't pass the destination argument.

Differential Revision: https://reviews.llvm.org/D110981
This commit is contained in:
Keith Smiley 2021-10-01 17:41:56 -07:00
parent 24c615fa6b
commit 0f3254b29f
1 changed files with 12 additions and 1 deletions

View File

@ -1067,7 +1067,18 @@ public:
CommandObjectPlatformPutFile(CommandInterpreter &interpreter)
: CommandObjectParsed(
interpreter, "platform put-file",
"Transfer a file from this system to the remote end.", nullptr, 0) {
"Transfer a file from this system to the remote end.",
"platform put-file <source> [<destination>]", 0) {
SetHelpLong(
R"(Examples:
(lldb) platform put-file /source/foo.txt /destination/bar.txt
(lldb) platform put-file /source/foo.txt
Relative source file paths are resolved against lldb's local working directory.
Omitting the destination places the file in the platform working directory.)");
}
~CommandObjectPlatformPutFile() override = default;