Skip to content

Commit

Permalink
main: rework CLI frontend
Browse files Browse the repository at this point in the history
 - Change command line flags to be align better with those of other
   interpreters and with the gcc compiler, e.g. `-D` and `-U` to
   define and undefine globals, `-e` to execute script expression etc.

 - Pass only excess CLI arguments as `ARGV` to scripts, e.g.
   `ucode -e 'print("Hello world")' -- -x -y` would pass only
   `[ "-x", "-y" ]` as ARGV contents

 - Default to raw mode and introduce flag to enable template mode

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Mar 14, 2022
1 parent 2392995 commit 4618807
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 213 deletions.

0 comments on commit 4618807

Please sign in to comment.