From df0c756f73c295bdf9e2993b01a87f881468aac1 Mon Sep 17 00:00:00 2001 From: K <5229241+Krasjet@users.noreply.github.com> Date: Fri, 16 Apr 2021 10:25:31 -0400 Subject: [PATCH] typographic rehash of `--help` output The current output for `--help` is quite messy and hard to navigate. I added some indentation and spacing to make the document easier to read. For example, File and expression options: -e , --eval Evaluate , print results -f , --load Like -e '(load "")' without printing The new layout is longer, but at least it is readable. It might be better if we could move all the options to a man page and only select a few common ones to put in `--help`. --- pkgs/compiler-lib/compiler/commands/test.rkt | 2 +- .../racket-doc/scribblings/raco/command.scrbl | 17 +- racket/collects/racket/cmdline.rkt | 35 ++- racket/src/bc/cmdline.inc | 195 +++++++++++------ racket/src/cs/main/help.ss | 203 ++++++++++++------ 5 files changed, 299 insertions(+), 153 deletions(-) diff --git a/pkgs/compiler-lib/compiler/commands/test.rkt b/pkgs/compiler-lib/compiler/commands/test.rkt index c88b0b5cab..8e4b633579 100644 --- a/pkgs/compiler-lib/compiler/commands/test.rkt +++ b/pkgs/compiler-lib/compiler/commands/test.rkt @@ -1002,7 +1002,7 @@ (set! packages? #t)] [("--modules" "-m") ("Interpret arguments as modules" - " (ignore argument unless \".rkt\", \".scrbl\", or enabled by \"info.rkt\")") + "(ignore argument unless \".rkt\", \".scrbl\", or enabled by \"info.rkt\")") (set! check-top-suffix? #t)] #:once-each [("--drdr") diff --git a/pkgs/racket-doc/scribblings/raco/command.scrbl b/pkgs/racket-doc/scribblings/raco/command.scrbl index d9af9027e6..a79f4c2136 100644 --- a/pkgs/racket-doc/scribblings/raco/command.scrbl +++ b/pkgs/racket-doc/scribblings/raco/command.scrbl @@ -101,12 +101,17 @@ command-line arguments with so that @exec{raco decompile --help} prints @verbatim[#:indent 2]{ - raco decompile [