Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter without an option #130

Closed
maccth opened this issue Jun 6, 2019 · 3 comments
Closed

Parameter without an option #130

maccth opened this issue Jun 6, 2019 · 3 comments

Comments

@maccth
Copy link

maccth commented Jun 6, 2019

Hi, this is a query rather than a bug report.
Is there a way to check for a command line parameter that doesn't have an option?
For example,

./myApp param

and then check for the param using Argu.
What is the best way to do this?
I've seen #85, has there been any updates since?

Cheers

@Ciantic
Copy link

Ciantic commented Jul 31, 2019

There is already one? with [<MainCommand>]

type CLIArguments =
    | [<MainCommand>] ImageFile of IMAGEFILE:string

It's just printed weird way in the help btw:

USAGE: gadget.exe [--help] [--size <size>] [<IMAGEFILE>]

IMAGEFILE:
    <IMAGEFILE>           crappery

OPTIONS:

    --size, -s <size>     size of new image file

The IMAGEFILE is repeated as a header of sorts there.

@bartelink
Copy link
Member

@maccth @Ciantic I'm not clear what the ask/proposal is here. Can this be closed and/or can the OP be expanded on please?

@bartelink
Copy link
Member

Closing for now; Feel free to re-open with details, but I suspect there is already an in the box way to do it, if the ask can be defined?

@bartelink bartelink closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants