summaryrefslogtreecommitdiffstats
path: root/lib/getopts.lua
Commit message (Collapse)AuthorAgeFilesLines
* Removed getopts library and added functionality to format library as ↵Ted Trask2008-09-291-322/+0
| | | | | | opts_to_table, table_to_opts, parse_configfile2, update_configfile2, get_section, and set_section. New functions work on strings, not files. Modified all code using getopts to use format instead. Fixed nil string bugs in TCPProxy. Fixed forward only bug in DNSCache. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1535 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified getopts to allow writing to blank files and adding in a missing ↵Ted Trask2008-08-041-2/+7
| | | | | | section. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1371 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added getsection and setsection functions to getopts library.Ted Trask2008-07-161-0/+82
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1310 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added finishingorder to displayform in viewfunctions to specify fields that ↵Ted Trask2008-07-101-0/+8
| | | | | | go at the end. Fixed bug in getopts that ignored the last line if no trailing carriage return. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1294 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Continuing to work on openssl. Not done yet.Ted Trask2008-05-201-5/+20
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1127 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added validation to syslog expert page.Ted Trask2008-05-151-2/+8
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1123 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrote getopts.setoptsinfile function and fixed bugs in getopts.getoptsfromfileTed Trask2008-05-081-41/+126
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1114 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrote getopts.getoptsfromfile function to handle more complicated config ↵Ted Trask2008-05-071-68/+66
| | | | | | files and removed getopts.getoptsfromfile_onperline function git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added modified functionallity.Mika Havela2008-02-141-0/+24
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@722 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Chaning the way this lib reports back statusMika Havela2008-02-011-2/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@675 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed the way the lib reports back statusMika Havela2008-01-311-2/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@672 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added functionallity to modify options in a fileMika Havela2008-01-291-4/+33
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@661 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed a bug in getopts. Getopts have ben broken for some time... dont know ↵Mika Havela2008-01-281-6/+12
| | | | | | for how long. But now its fixed git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@659 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Check if file exists or return nilMika Havela2008-01-251-0/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@647 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed a bug when looking for where next parameter startsMika Havela2008-01-241-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@644 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Minor changes on tablesMika Havela2008-01-241-3/+3
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@636 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed a bug when a value contains a - sign. Now it looks for (space)- before ↵Mika Havela2008-01-171-1/+4
| | | | | | splitting up into a variable git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@595 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Moving getopts function from openntpd-model to a library.\nMoving ↵Mika Havela2008-01-131-0/+59
daemon-control to a library.\nThese 2 libraries are not documented yet and are not working as they should. Work in progress! git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@558 ab2d0c66-481e-0410-8bed-d214d4d58bed