Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Add code to allow user to create generic command line parameters #7

Open
OnorioCatenacci opened this issue Feb 8, 2012 · 4 comments
Assignees

Comments

@OnorioCatenacci
Copy link
Owner

Because the main use case for Finnikin is shell scripts, it would be useful to allow an end user to add their own user defined command line parameters to their shell script. For example, allow a user to define a "-u" parameter for a userID or a "-user" if that suits them better.

Would probably use FParsec to provide this functionality.

@ghost ghost assigned OnorioCatenacci Feb 9, 2012
@panesofglass
Copy link

Why wouldn't this work in the same way as the combinators thread?

@OnorioCatenacci
Copy link
Owner Author

It might; I basically added all of the issues I did because I didn't want to forget the ideas.

What I was thinking of with this is to build a generic way for an end user to add command line parameters to their shell script. For example, I built a shell script to manage certain aspects of connecting to a SQL Server console. One thing I wanted to be able to specify on the command line was the database to connect to because there are multiple databases I need to connect with so I added a "-d" parameter on the command line.

I want to add the ability for a user of Finnikin to define their own command line parameters for their shell script.

@panesofglass
Copy link

oh, I get it now. Very cool idea!

@OnorioCatenacci
Copy link
Owner Author

Yes, I'm thinking of something along these lines: http://code.google.com/p/gflags/?redir=1 except for F# of course. This seems like a great use case for FParsec.

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

No branches or pull requests

2 participants