Skip to content

Conversation

@majiayu000
Copy link

Summary

Fixes #411 - Windows run.bat script displays help instead of executing commands.

Root cause: Script execution flowed directly into :show_help function before reaching :parse_args because:

  1. No jump instruction after variable initialization
  2. call :parse_args %* at end of file was unreachable (after exit /b 0)

Changes:

  • Add goto :main_start after variable initialization to skip function definitions
  • Add :main_start label before :parse_args
  • Remove unreachable call :parse_args %* at end of file

Test plan

  • Run run.bat build - should execute build command instead of showing help
  • Run run.bat --ticker AAPL main - should run main with ticker argument

The script was not parsing command-line arguments because execution
flowed directly into the :show_help function before reaching :parse_args.

Changes:
- Add goto :main_start after variable initialization to skip function definitions
- Add :main_start label before :parse_args
- Remove unreachable call :parse_args at end of file
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

Successfully merging this pull request may close these issues.

Fail to use run.bat on Windows

2 participants