Skip to content

Comments

Implement Basic Procedure for Argument Parsing (Refined)#14

Merged
ufo5260987423 merged 2 commits intoMoganLab:mainfrom
rennsax:main
Jun 3, 2025
Merged

Implement Basic Procedure for Argument Parsing (Refined)#14
ufo5260987423 merged 2 commits intoMoganLab:mainfrom
rennsax:main

Conversation

@rennsax
Copy link

@rennsax rennsax commented Jun 3, 2025

Refined PR for #12. Avoid breaking changes.

We don't need the record type, as it incurs expensive overheads. Currently we only need a list to store all operands (reversely).

rennsax added 2 commits June 3, 2025 14:41
- Use a list to store all operands (reversely).
- Output help messages to standard error.
@rennsax
Copy link
Author

rennsax commented Jun 3, 2025

Examples:

$ scheme --script ./run.ss --help
Usage:
  ./run.ss --help | -h
  ./run.ss [input-port] [output-port] [log-path]

Arguments:
  input-port                Port to read messages (default: stdin)
  output-port               Port to write messages (default: stdout)
  log-path                  Path to write log output (default: null)

Example Usage:
  ./run.ss /path/to/scheme-langserver.log

$ scheme --script ./run.ss -a
Unrecognized option: a
Usage:
  ./run.ss --help | -h
  ./run.ss [input-port] [output-port] [log-path]

Arguments:
  input-port                Port to read messages (default: stdin)
  output-port               Port to write messages (default: stdout)
  log-path                  Path to write log output (default: null)

Example Usage:
  ./run.ss /path/to/scheme-langserver.log

@ufo5260987423 ufo5260987423 merged commit dc146c3 into MoganLab:main Jun 3, 2025
1 check passed
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.

2 participants