Skip to content

How to pass multiple commands to tic80 --cli using --cmd=<str> #2608

Answered by stephen010x
stephen010x asked this question in Q&A
Discussion options

You must be logged in to vote

Gentlemen, it would appear that not only 30 minutes later, I managed to answer my own question.

In my attempts to figure out how to do this, I was looking through the source code of TQ-Bundler by @scambier, a project that aims to help in the development of tic80 games using multiple code files. (though too feature lacking for my use)
In his code I found that he uses single ampersand & separators between every command in his --cmd string.

Here is an example of the usage using the Windows command prompt:

C:\Windows\System32>tic80.exe --cli --cmd="help version & help tri"

1.1.2837 Pro
---=== API ===---
tri(x1 y1 x2 y2 x3 y3 color)

This function draws a triangle filled with color, using the…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@stephen010x
Comment options

@scambier
Comment options

@stephen010x
Comment options

@Skeptim
Comment options

@scambier
Comment options

Answer selected by stephen010x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants