Skip to content

Is there a way to support --switch=parameter syntax ?? #8

Description

@rwilcox

Given the following program --help generates help text that doesn't seem to support --parameter=text format, but --parameter text

#lang cli

(flag (file  in-file-path)
      ("-f" "--file" "filepath")
      (file in-file-path))

(program (hello)
  (displayln (file))
)

(run hello)

CLI output:

PS ... > D:\Racket\Racket.exe .\tmp.rkt --help
usage: hello [ <option> ... ]


<option> is one of


  -f <in-file-path>, --file <in-file-path>
     filepath to write the changelog to. Can NOTE use --file=foo must use --file foo
  --help, -h
     Show this help
  --
     Do not treat any remaining argument as a switch (at this level)

 *   Asterisks indicate options allowed multiple times.

 Multiple single-letter switches can be combined after
 one `-`. For example, `-h-` is the same as `-h --`.

PS ...> D:\Racket\Racket.exe .\tmp.rkt --file hello
hello
PS ...> D:\Racket\Racket.exe .\tmp.rkt --file=hello
hello: unknown switch: --file=hello
PS C:\Users\aias\Documents\Development\simple_changelog>

(but thank you very much for making this little language!)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions