Skip to content

Commit

Permalink
Merge pull request #1299 from arturo-lang/display-non-working-termina…
Browse files Browse the repository at this point in the history
…l-options

Disable non-working terminal options
  • Loading branch information
drkameleon authored Nov 11, 2023
2 parents 9b59256 + 64fa301 commit bd2b38c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions src/arturo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,22 @@ Options:
-e, --evaluate Evaluate given code
-r, --repl Show repl / interactive console
-u, --update Update to latest version
-m, --module
list List all available modules
remote List all available remote modules
info <name> Get info about given module
install <name> Install remote module by name
uninstall <name> Uninstall module by name
update Update all local modules
--no-color Mute all colors from output
-h, --help Show this help screen
-v, --version Show current version
"""

# -u, --update Update to latest version

# -m, --module
# list List all available modules
# remote List all available remote modules
# info <name> Get info about given module
# install <name> Install remote module by name
# uninstall <name> Uninstall module by name
# update Update all local modules

#=======================================
# Helpers
#=======================================
Expand Down Expand Up @@ -129,8 +129,8 @@ when isMainModule and not defined(WEB):

var action: CmdAction = evalCode
var runConsole = static readFile("src/scripts/console.art")
var runUpdate = static readFile("src/scripts/update.art")
var runModule = static readFile("src/scripts/module.art")
#var runUpdate = static readFile("src/scripts/update.art")
#var runModule = static readFile("src/scripts/module.art")
var muted: bool = not isColorFriendlyTerminal()

var unrecognizedOption = ""
Expand Down Expand Up @@ -162,13 +162,13 @@ when isMainModule and not defined(WEB):
of "x","execute":
action = readBcode
code = token.val
of "u","update":
action = evalCode
code = runUpdate
of "m", "module":
action = evalCode
code = runModule
break
# of "u","update":
# action = evalCode
# code = runUpdate
# of "m", "module":
# action = evalCode
# code = runModule
# break
of "no-color":
muted = true
of "h","help":
Expand Down
2 changes: 1 addition & 1 deletion version/build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1026
1029

0 comments on commit bd2b38c

Please sign in to comment.