Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line arguments do not work anymore in the latest commit #1267

Closed
KatPurpy opened this issue Dec 10, 2020 · 4 comments
Closed

Command line arguments do not work anymore in the latest commit #1267

KatPurpy opened this issue Dec 10, 2020 · 4 comments
Assignees

Comments

@KatPurpy
Copy link

I use tic80/tic80.exe cart.js -code code.js to test my code changes but since I had upgraded to latest version of TIC-80 now the console shows nothing and returns error code 1

@nesbox
Copy link
Owner

nesbox commented Dec 10, 2020

Dev version has new command-line arguments since #1247

$ ./tic80 -h
Usage: tic80 [cart] [options]

TIC-80 startup options:

    -h, --help        show this help message and exit
    --skip            skip startup animation
    --nosound         disable sound output
    --fullscreen      enable fullscreen mode
    --fs=<str>        path to the file system folder
    --scale=<int>     main window scale
    --cmd=<str>       run commands in the console

So, to embed the code to the cart you could call tic80 --cmd "load cart.js & import code code.js" but code importing was removed, I still doubt do we really need code import when you can open cart.js in any text editor?

@KatPurpy
Copy link
Author

The reason why I want you to keep code importing is because I have somewhat of JavaScript build pipeline where JavaScript code is built from multiple little source files as editing 2k long file is kind of... frustrating. I do not want to be forced to use typescript as it may produce additional bugs and possibly errors that TIC-80 reports may be incorrect leading into harder debugging

изображение

@nesbox
Copy link
Owner

nesbox commented Dec 10, 2020

I see, I'll try to restore import code ... command soon then.
Thanks.

@nesbox nesbox self-assigned this Dec 10, 2020
nesbox added a commit that referenced this issue Dec 10, 2020
@nesbox
Copy link
Owner

nesbox commented Dec 10, 2020

I restored import code ... command in the console here 2c542f9
Try to use tic80 cart.js --cmd "import code code.js", also, use --fs <path> to assign the path to the TIC's filesystem, use --fs . for the working dir.
Thanks for the report.

@nesbox nesbox closed this as completed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants