aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2021-10-01 17:41:56 -0700
committerKeith Smiley <keithbsmiley@gmail.com>2021-10-05 10:29:37 -0700
commit0f3254b29f375d449e815e91d63bef78d9e81354 (patch)
treeacd96ea66dd9dd3f49f6f7f0532a0cd44798035a /lldb/source/Commands/CommandObjectPlatform.cpp
parent24c615fa6b6b7910c8743f9044226499adfac4e6 (diff)
downloadllvm-0f3254b29f375d449e815e91d63bef78d9e81354.zip
llvm-0f3254b29f375d449e815e91d63bef78d9e81354.tar.gz
llvm-0f3254b29f375d449e815e91d63bef78d9e81354.tar.bz2
[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
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index c4444d4..6bfb4c8 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -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;