CompuServe Thread

Commodity question

3 messages in this thread
#40212From: David CzayaMar 24, 1994 10:30 PM
I have a question about style. I am writing a commodity and am wondering about the proper way to approach the issue of ToolTypes and command line arguments. I have the commodity working properly with both (WB/Shell) startup methods. I used the commodities.library ArgArray() functions which parse out both ToolTypes and Shell args correctly, but there doesn't seem to be any provision for a command line template. I can use ReadArgs() to do the template part, but that is duplicating the work of the ArgArray() functions. I am wondering how others handle this? Do you simply have no template? Do you use Readargs? Do you hack a template in? There is nothing in the RKM or the Style Guide that I could find that addresses this, yet it seems like quite a common problem. Thank you for any help you may have to offer. David Czaya …via AutoPilot 73445,407
#40324From: Gerald BonnstetterMar 31, 1994 6:51 AM
Have you looked at using ArgArrayInit(argc, argv)? Then your Shell arguments look just like your ToolType arguments and you process them with the functions. // \X/ Amiga or bust! Gary Bonnstetter, Bonnsoft
#40329From: David CzayaMar 31, 1994 8:07 PM
>> Have you looked at using ArgArrayInit(argc, argv)? Yes, that is what I am using, but this doesn't provide a command line template like ReadArgs() does. David David Czaya …via AutoPilot 73445,407