andyswarbs Posted February 18, 2006 Share Posted February 18, 2006 There are some programs that need to support complex command line options. If that's you then you might find this library useful. This library provides a structured parsing of command lines with additional support for setting default values in the registry. To call the routine you describe your command line in an (N+1)x3 array, where N is the number of arguments. On return any argument that is recognised has index 1 set to that value. If a parameter to the argument is required then index 2 has that value. Normal command line argument rules apply, with the following additional guidelines. Positional arguments are supported and must occur before all optional argumemts. Optional arguments are prefixed with either a '-' or a '/'. Positional arguments must be space separated (with required spaces must be embedded in quotation marks). This routine is useful when your command line is becoming complex & powerful. The automatic registry support makes the implementation very powerful. Up to two registry locations are supported: typically you c/would use one for HKCU (user defaults) and another for HKLM (computer defaults). (Warning: This tool is in alpha state - so do not expect perfection - thanks in advance to those who try. My goal is to extend validation & rigour, eg to ensure a filename is valid and that parameters to arguments are properly specified.)PopG_CmdLine.au3 Licensing.au3Extended _Max & _Min_MsgBoxExitVarious extensions to _GuiCtrl...Run Dos programs output into an array etc (Updated 19-Feb-06)Extensions to Array library, primarily in two dimensions (updated 20-Feb-06)Version dependency calculator, _IsVer1GEVer2User Management, answering some domain questions (updated 19-Feb-06, various bugfixes and new functions added)Extensions to registry manipulation, including a recursive search & replaceDelimited string library (updated 19-Feb-03, added _DelimListSort)String library extensionsTerminal Server supportFile libraryCommand line parser (added 18-Feb-06)(UDF homepage) (Scit4Au3 UserCallTips added 21-Feb-06) Link to comment Share on other sites More sharing options...
cppman Posted February 18, 2006 Share Posted February 18, 2006 where is PopG_String.au3, PopG_Reg.au3, and PopG_array.au3? Miva OS Project Link to comment Share on other sites More sharing options...
andyswarbs Posted February 21, 2006 Author Share Posted February 21, 2006 If you follow through my signature you will be able to collect other the other library components. Let me know if that is a problem. Licensing.au3Extended _Max & _Min_MsgBoxExitVarious extensions to _GuiCtrl...Run Dos programs output into an array etc (Updated 19-Feb-06)Extensions to Array library, primarily in two dimensions (updated 20-Feb-06)Version dependency calculator, _IsVer1GEVer2User Management, answering some domain questions (updated 19-Feb-06, various bugfixes and new functions added)Extensions to registry manipulation, including a recursive search & replaceDelimited string library (updated 19-Feb-03, added _DelimListSort)String library extensionsTerminal Server supportFile libraryCommand line parser (added 18-Feb-06)(UDF homepage) (Scit4Au3 UserCallTips added 21-Feb-06) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now