Category: System
Syntax:
sysCommandLine:String()
None.
String
Returns the program's command line: everything typed after the program's name.
Returns the arguments after the program's own name, joined with spaces. The shell has already split them, so any argument with a space in it is put back in quotes: ./MyTool "level 1.txt" -fast gives "level 1.txt" -fast. Returns "" when nothing came after the name (the program was double-clicked, or run from the IDE).
sysArgCount and sysArg are usually easier: they split the line into its parts and take the quotes off.
View detailed documentation online
UseConsole
Import "BBRuntime64.decls"
Function Main()
Print "Command line: " & sysCommandLine()
Return False
EndFunction
BambooBasic © 2026 Michael Denathorn