Better command line options #45

Open
opened 2023-01-24 02:28:49 +01:00 by s452639 · 0 comments
Collaborator

Provide good command line parameter input sub-language. I see Go compiler as one of the good ones, so maybe implement something inspired by it:

  • musique doc <builtin> - print documentation for builtin function
  • musique run <name> - execute given file
  • muqique with <name> - execute given file and enter interactive mode
  • musique def <name> - define given file as function (same as --as-function now)
  • musique help - print help

Additional flag --interactive (short: -i) for run mode will be supported.

Commands can be combined:

$ musique def examples/for-elise.mq with instruments.mq
> instrument Celesta
> play for_elise
Provide good command line parameter input sub-language. I see Go compiler as one of the good ones, so maybe implement something inspired by it: - `musique doc <builtin>` - print documentation for builtin function - `musique run <name>` - execute given file - `muqique with <name>` - execute given file and enter interactive mode - `musique def <name>` - define given file as function (same as `--as-function` now) - `musique help` - print help Additional flag `--interactive` (short: `-i`) for run mode will be supported. Commands can be combined: ``` $ musique def examples/for-elise.mq with instruments.mq > instrument Celesta > play for_elise ```
Sign in to join this conversation.
No Label
bug
enhancement
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: s416496/musique#45
No description provided.