-
Notifications
You must be signed in to change notification settings - Fork 369
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
- Home
- Build scriptcs
- Building on Mac and Linux
- Using scriptcs
- The command line
- Package installation
- Writing a script
- Compiling (and caching) to a .dll
- Debugging a script
- REPL
- Running scripts in Atom
- REPL
- Script Packs
- Script Libraries
- Modules
- Hosting
- Community
- Known Issues