FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pass arguments to scripts · scriptcs/scriptcs Wiki · GitHub

Pass arguments to scripts

Dave McKeown edited this page May 22, 2014 · 2 revisions

If you need to handle command line arguments in your scripts you can do that by adding them after double dash:

scriptcs myscript.csx -- arg1 arg2

Then use them in your script with the string array Env.ScriptArgs

Console.Write(Env.ScriptArgs[0]); // writes arg1

Wiki pages Pages 35

Clone this wiki locally


Back | FazBrowse Home | New Git URL