mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +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 :: you can add your plugins to the cmder path like so | ||||||
| echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%" | echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%" | ||||||
| echo. | echo. | ||||||
| echo :: Pass custom arguments to init.bat, and you can parse them like so: | echo :: arguments in this batch are passed from init.bat, you can parse them like so: | ||||||
| echo :: If found... |  | ||||||
| echo :: echo %* | find /i "/noautorun">nul |  | ||||||
| echo :: if "%ERRORLEVEL%" == "0" ( |  | ||||||
| echo ::   call vsCode |  | ||||||
| echo :: ) |  | ||||||
| echo. | echo. | ||||||
| echo :: If NOT found... | echo :: echo %* | find /i "/customOption">nul | ||||||
| echo :: echo %* | find /i "/noautorun">nul | echo :: if "%ERRORLEVEL%" == "0" ( | ||||||
| echo :: if "%ERRORLEVEL%" == "1" ( | echo ::   echo found /customOption. | ||||||
| echo ::   call vsCode | echo ::   do something. | ||||||
|  | echo :: ) else ( | ||||||
|  | echo ::   echo not found /customOption. | ||||||
|  | echo ::   do something. | ||||||
| echo :: ) | echo :: ) | ||||||
| echo. | echo. | ||||||
| echo @echo off | echo @echo off | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user