diff options
author | Kate Stone <katherine.stone@apple.com> | 2015-07-14 05:48:36 +0000 |
---|---|---|
committer | Kate Stone <katherine.stone@apple.com> | 2015-07-14 05:48:36 +0000 |
commit | ea671fbdffda6976607997eb2e5d796211cf5003 (patch) | |
tree | 24e6b00951c3ddccba9afad5f20faaf338d8ff81 /lldb/source/Commands/CommandObjectSettings.cpp | |
parent | 2ffb36e829f79d3660b7a2cf94a1746f62a81518 (diff) | |
download | llvm-ea671fbdffda6976607997eb2e5d796211cf5003.zip llvm-ea671fbdffda6976607997eb2e5d796211cf5003.tar.gz llvm-ea671fbdffda6976607997eb2e5d796211cf5003.tar.bz2 |
Fixed line wrapping for the "long help" content in LLDB commands. Content is now dynamically wrapped for the column width of the current terminal. Lines that begin with whitespace will be indented identically on subsequent lines to maintain formatting.
Existing commands supplying this type of help content have been reworked to take advantage of the changes. In addition to formatting changes, content was changes for accuracy and clarity purposes.
<rdar://problem/21269977>
llvm-svn: 242122
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSettings.cpp | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp index ccbf98c..8ed783b 100644 --- a/lldb/source/Commands/CommandObjectSettings.cpp +++ b/lldb/source/Commands/CommandObjectSettings.cpp @@ -60,24 +60,25 @@ public: m_arguments.push_back (arg2); SetHelpLong ( -"When setting a dictionary or array variable, you can set multiple entries \n\ -at once by giving the values to the set command. For example: \n\ -\n\ -(lldb) settings set target.run-args value1 value2 value3 \n\ -(lldb) settings set target.env-vars MYPATH=~/.:/usr/bin SOME_ENV_VAR=12345 \n\ -\n\ -(lldb) settings show target.run-args \n\ - [0]: 'value1' \n\ - [1]: 'value2' \n\ - [3]: 'value3' \n\ -(lldb) settings show target.env-vars \n\ - 'MYPATH=~/.:/usr/bin'\n\ - 'SOME_ENV_VAR=12345' \n\ -\n\ -Warning: The 'set' command re-sets the entire array or dictionary. If you \n\ -just want to add, remove or update individual values (or add something to \n\ -the end), use one of the other settings sub-commands: append, replace, \n\ -insert-before or insert-after.\n"); +"\nWhen setting a dictionary or array variable, you can set multiple entries \ +at once by giving the values to the set command. For example:" R"( + +(lldb) settings set target.run-args value1 value2 value3 +(lldb) settings set target.env-vars MYPATH=~/.:/usr/bin SOME_ENV_VAR=12345 + +(lldb) settings show target.run-args + [0]: 'value1' + [1]: 'value2' + [3]: 'value3' +(lldb) settings show target.env-vars + 'MYPATH=~/.:/usr/bin' + 'SOME_ENV_VAR=12345' + +)" "Warning: The 'set' command re-sets the entire array or dictionary. If you \ +just want to add, remove or update individual values (or add something to \ +the end), use one of the other settings sub-commands: append, replace, \ +insert-before or insert-after." + ); } |