Last active
February 19, 2019 08:59
-
-
Save kusyka911/9162a3a453983b89680b6091371f9235 to your computer and use it in GitHub Desktop.
bat-file template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%1" == "" (goto error) | |
if "%1" == "/?" (goto help) | |
if "%1" == "/h" (goto help) | |
if "%1" == "help" (goto help) | |
if "%1" == "-h" (goto help) | |
if "%1" == "--help" (goto help) | |
goto main | |
:help | |
echo %0 descripton: | |
goto :EOF | |
:main | |
rem your code heare | |
:error | |
echo Syntax error, use /h or -h to see help | |
echo *or maybe developer error* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment