At Wed, 14 Mar 2018 11:49:06 +0100, "'Paulo Matos' via Racket Users" wrote:
>     (command-line
>      #:program "s10-tryout server"
>      #:once-each
>      [("-h" "--hostname") h
>                           "Hostname (optional)"
>                           (hostname h)]
> [...]
> 
> The most interesting thing about this is how it fails (surely due to
> some error of mine), but without actually helping much even when called
> with errortrace:
> 
> $ racket -l errortrace -t src/main.rkt
> parse-command-line: expected argument of type <table as a list of
> flag-list/procedure pairs (no pre-defined flags: "-h")>; given:
> '((once-each (("-h" "--hostname")
>
> [...]
>
> Should this be reported as a bug?

Yes, that's a bug. The `command-line` form should check the constraint
that a "-h" flag is disallowed, instead of generating a bad call to
`parse-command-line`.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to