Skip to content

repl: improve .help

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

repl

Description of change
  • Added dots to .help print
  • Use spaces instead of tabs so there's no misalignment on terminals with a tab size other than 4
  • Fixed the help text for .editor

Before:

> .help
break   Sometimes you get stuck, this gets you out
clear   Alias for .break
editor  Entering editor mode (^D to finish, ^C to cancel)
exit    Exit the repl
help    Show repl options
load    Load JS from a file into the REPL session
save    Save all evaluated commands in this REPL session to a file

After:

> .help
.break    Sometimes you get stuck, this gets you out
.clear    Alias for .break
.editor   Enter editor mode
.exit     Exit the repl
.help     Show repl options
.load     Load JS from a file into the REPL session
.save     Save all evaluated commands in this REPL session to a file

Merge request reports

Loading