mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	Optimize comments of using arguments in user-profile.cmd
This commit is contained in:
		
							
								
								
									
										18
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							| @@ -320,17 +320,15 @@ echo. | ||||
| echo :: you can add your plugins to the cmder path like so | ||||
| echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%" | ||||
| echo. | ||||
| echo :: Pass custom arguments to init.bat, and you can parse them like so: | ||||
| echo :: If found... | ||||
| echo :: echo %* | find /i "/noautorun">nul | ||||
| echo :: if "%ERRORLEVEL%" == "0" ( | ||||
| echo ::   call vsCode | ||||
| echo :: ) | ||||
| echo :: arguments in this batch are passed from init.bat, you can parse them like so: | ||||
| echo. | ||||
| echo :: If NOT found... | ||||
| echo :: echo %* | find /i "/noautorun">nul | ||||
| echo :: if "%ERRORLEVEL%" == "1" ( | ||||
| echo ::   call vsCode | ||||
| echo :: echo %* | find /i "/customOption">nul | ||||
| echo :: if "%ERRORLEVEL%" == "0" ( | ||||
| echo ::   echo found /customOption. | ||||
| echo ::   do something. | ||||
| echo :: ) else ( | ||||
| echo ::   echo not found /customOption. | ||||
| echo ::   do something. | ||||
| echo :: ) | ||||
| echo. | ||||
| echo @echo off | ||||
|   | ||||
		Reference in New Issue
	
	Block a user