Skip to content

Gather unrecognized arguments #55

Closed

Description

@Tarmil

I'd like to be able to get a list of all the unrecognized arguments. Think for example of a compiler that takes source file names as plain arguments. A proposal could be something like this:

type Command =
  | [<Unrecognized>] SourceFile of string
  | [<CustomCommandLine "-s">] SomeSwitch

// Example:
[ "foo.fs"; "-s"; "bar.fs" ] => [ SourceFile "foo.fs"; SomeSwitch; SourceFile "bar.fs" ]

Activity

  1. eiriktsarpalis commented on Jun 27, 2016

    @eiriktsarpalis
    Member

    Please review #54, it addresses this issue in a somewhat different approach.

  2. Tarmil commented on Jun 27, 2016

    @Tarmil
    ContributorAuthor

    Looks good! Feel free to close this issue as soon as it's merged.

  3. eiriktsarpalis commented on Jun 30, 2016

    @eiriktsarpalis
    Member

    Fixed in #54

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions