[Autogen-users] AutoOpts for Shell-Script
Brought to you by:
bkorb
From: Manuel H <mo...@co...> - 2012-12-10 08:36:34
|
Hello AutoGen lovers! I want to use AutoOpts for Shell script generation, and in previous letters Bruce already introduced me on how to compile the def-file so a shell script is created. Now i want to to modify the shell script found at https://github.com/codeless/MyRex/blob/master/myrex.sh to use AutoOpts. Several parameters for this script are forced, but this doesn't seem to work with AutoOpts. For instance: flag = { name = sqlfile; descrip = "SQL file to be executed"; arg-type = file; must-set = true; } I want AutoOpts to check for the parameter "sqlfile", which has to be set and should be checked if it's a valid (existing) file. How to achieve this? Is it possible with AutoOpts for Shell-Scripts? Further on, i want to force the user to pass a directory-path to the script (not as flag); i used: argument = file; Is this the way to go? Thanks for any help!! -Manuel |