help-system

Get-Help for .trim / -trim, .replace / -replace, .split / -split and other string operators

这一生的挚爱 提交于 2020-11-28 18:14:41
问题 PowerShell has a pretty good built-in help system that I use a lot and I'm able to see all help options with Get-Help * and query Cmdlets or can look up Topics with Get-Help about_* and then say Get-Help about_compar* to open the Comparison Operators topic which is all very good. However, I was trying to find how to get help on the various string operators, like .replace, .compare, .split, .substring. Does anyone know how to pull these topics up on the PowerShell console (possibly, they might

Get-Help for .trim / -trim, .replace / -replace, .split / -split and other string operators

China☆狼群 提交于 2020-11-28 18:13:52
问题 PowerShell has a pretty good built-in help system that I use a lot and I'm able to see all help options with Get-Help * and query Cmdlets or can look up Topics with Get-Help about_* and then say Get-Help about_compar* to open the Comparison Operators topic which is all very good. However, I was trying to find how to get help on the various string operators, like .replace, .compare, .split, .substring. Does anyone know how to pull these topics up on the PowerShell console (possibly, they might

Why does the Python help function applied to an instance return a page about the parent class in some cases and not it others?

被刻印的时光 ゝ 提交于 2020-01-04 02:16:08
问题 I'm trying to understand how to get useful results when the help function is used to interrogate objects created in my code. I'm puzzled by different behavior for different classes. Cls1 = type( 'FirstClass', (str,), {'__doc__':'My new class'}) inst1 = Cls1('Hello World') Cls2 = type( 'SecondClass', (object,), {'__doc__':'My second new class'}) inst2 = Cls2( ) help(inst1) yields No Python documentation found for 'Hello World' , while help(inst2) yields: Help on SecondClass in module __main__

HelpSystem doesn't work in Delphi XE2 with a few projects

不想你离开。 提交于 2019-12-25 03:49:34
问题 Create any application in Delphi XE2 and press F1 to run help system. You'll see the help article or the following window (for search string 'function'): I have an application for Delphi XE2. When I open it and press F1 help system opens only the following window (for search string 'function'): If you'll open the first project again (after the second) help system opens the same window as on the second project (incorrect). I have tried to delete the following files: .dproj, .dof, .identcache,

What does the -raw switch parameter in Get-Content really do in Powershell? Finding helpful documentation

亡梦爱人 提交于 2019-12-22 14:52:28
问题 I've been trying to work with an API that only accepts raw text or base64 encoded values in a JSON object. The content I'm POSTing is data from an XML file. So I used Powershell's Get-Content cmdlet (without -Raw ) to retrieve the data from the .xml and then base64 encode it and sent it to the API. The API then decodes it, but the XML formatting was lost. I found a SO post about using the -Raw switch on Get-Content , but it seems like the documentation for this switch is vague. When I used

What does the -raw switch parameter in Get-Content really do in Powershell? Finding helpful documentation

▼魔方 西西 提交于 2019-12-06 07:36:28
I've been trying to work with an API that only accepts raw text or base64 encoded values in a JSON object. The content I'm POSTing is data from an XML file. So I used Powershell's Get-Content cmdlet (without -Raw ) to retrieve the data from the .xml and then base64 encode it and sent it to the API. The API then decodes it, but the XML formatting was lost. I found a SO post about using the -Raw switch on Get-Content , but it seems like the documentation for this switch is vague. When I used the -Raw switch, encoded it and sent it back to the API, the formatting was good. As per Kory Gill's