diff options
Diffstat (limited to 'lib/Orion/CLI.rakumod')
-rw-r--r-- | lib/Orion/CLI.rakumod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Orion/CLI.rakumod b/lib/Orion/CLI.rakumod new file mode 100644 index 0000000..be7085a --- /dev/null +++ b/lib/Orion/CLI.rakumod @@ -0,0 +1,8 @@ +proto MAIN(|) is export { unless so @*ARGS { say $*USAGE; exit }; {*} } + +multi sub MAIN( +) { } + +multi sub MAIN( + Bool :$version #= print version +) { say "Orion v" ~ $?DISTRIBUTION.meta<version>; } |