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

Arg Commands #5

Closed
alexfalkowski opened this issue Aug 8, 2012 · 11 comments
Closed

Arg Commands #5

alexfalkowski opened this issue Aug 8, 2012 · 11 comments
Labels

Comments

@alexfalkowski
Copy link

Hi,

Would it be possible to set-up arguments as commands like in linux. For example "apt-get install" and then the command can have options (which you have already), though it would be nice if the long version of the options could be treated with a -- rather than -.

You can look at http://linux.die.net/man/8/apt-get to see what I mean.

Regards,
Alex

@alexfalkowski
Copy link
Author

Any thoughts on this?

@adamabdelhamed
Copy link
Owner

I'm not sure if this is a dumb question, but what is the significance/benefit of the two dashes?

@alexfalkowski
Copy link
Author

Not a dumb question at all. It is all to do with standards you can read more about this

http://superuser.com/questions/372203/whats-the-difference-between-one-dash-and-two-dashes-for-command-prompt-paramet (look at the third post)

The reason I want it is that the tool is supported on OSX and hopefully linux. This is their standard.

@adamabdelhamed
Copy link
Owner

I want to confirm before I start coding. If there was an attribute with usage like this:

[ArgLongVersion("my-long-version")]

And it let you also use the syntax --my-long-version=value would that do the trick?

@alexfalkowski
Copy link
Author

That looks fine :)

@adamabdelhamed
Copy link
Owner

Great. I have it mostly coded. I'll write a few tests and probably push it out Monday morning (US Pacific).

A few notes on what I've built:
- It will support multiple long versions per argument since it looks like that's common from the examples you've sent.
- It will show up via ArgUsage.GetUsage() so the documentation will reflect these aliases.

@alexfalkowski
Copy link
Author

That will be great looking forward to it.

@adamabdelhamed
Copy link
Owner

Sorry this isn't in yet. It should be in sometime this week.

@alexfalkowski
Copy link
Author

Thanks mate :)

@adamabdelhamed
Copy link
Owner

Any feedback on this one? Is it working as you expected?

@alexfalkowski
Copy link
Author

So far so good mate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants