Skip to content
Snippets Groups Projects
  • Duncan Coutts's avatar
    e223e4c8
    Fix rejection of non-ambigious options · e223e4c8
    Duncan Coutts authored
    This GetOpt patch was sent the the libraries list by Eelis van der Weegen
    with the explanation:
    There is a bug in System.Console.GetOpt causing it to mistakenly reject
    options as ambiguous. Example:
      optsDesc = [Option "" ["color", "colour"] (ReqArg id "color") ""]
    Output:
      option `--col' is ambiguous; could be one of:
          --color=color, --colour=color  Foreground color
          --color=color, --colour=color  Foreground color
    This error is silly, because the two alternatives listed are the same option.
    e223e4c8
    History
    Fix rejection of non-ambigious options
    Duncan Coutts authored
    This GetOpt patch was sent the the libraries list by Eelis van der Weegen
    with the explanation:
    There is a bug in System.Console.GetOpt causing it to mistakenly reject
    options as ambiguous. Example:
      optsDesc = [Option "" ["color", "colour"] (ReqArg id "color") ""]
    Output:
      option `--col' is ambiguous; could be one of:
          --color=color, --colour=color  Foreground color
          --color=color, --colour=color  Foreground color
    This error is silly, because the two alternatives listed are the same option.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.