[RULE] Need help with scripting Vacuum
    Eugene Wong 
    disposable_eugene at hotmail.com
       
    Tue Dec 10 07:50:03 EET 2002
    
    
  
Hi all.
A few days ago, I reached the point, where I should start adding code to 
deal with options. I'm wondering how to go about doing it. I noticed that 
the Advance Bash Scripting Guide tells everybody how to go about dealing 
with portions of the arguement in chapter 9, but it doesn't really give any 
good theory.
For single letter options, I seem to notice that they usually begin with 1 
dash, & most often seem to allow "-abc" or "-a -b -c". Do we want to allow 
users to use the latter form? If I understand correctly, it would take a lot 
more code to deal with both. Since we want to allow both "-e" & "--empty", 
then there would be more parsing anyways.
What's the best way of dealing with options? Using "shift"?
Sincerely, and with thanks,
Eugene T.S. Wong
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail
_______________________________________________
Rule Project HOME PAGE:  http://www.rule-project.org/en/
Rule Development Site:   http://savannah.gnu.org/projects/rule/
Rule-list at nongnu.org
http://mail.nongnu.org/mailman/listinfo/rule-list
    
    
More information about the Rule-list
mailing list