aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/parseopt.h
AgeCommit message (Collapse)AuthorFilesLines
2013-08-19[params] Add support for the general concept of a form parameter listMichael Brown1-0/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-22[parseopt] Add parse_setting()Michael Brown1-1/+15
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-22[parseopt] Move parse_settings() to parseopt.cMichael Brown1-1/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-22[parseopt] Allow parsed option to be modifiedMichael Brown1-9/+9
Parsing a setting name requires the ability to modify the text being parsed. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-29[menu] Add menu commandsMichael Brown1-0/+2
Allow iPXE scripts to create menus. For example: #!ipxe menu iSCSI boot demonstration item install Install Fedora to ${root-path} item --default boot Boot from ${root-path} item shell Enter iPXE shell item exit Exit to BIOS choose label && goto ${label} :boot sanboot ${root-path} :install sanhook ${root-path} chain http://${next-server}/fedora.ipxe :shell shell :exit Inspired-by: Robin Smidsrød <robin@smidsrod.no> Tested-by: Robin Smidsrød <robin@smidsrod.no> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-29[parseopt] Allow "prompt" command to accept character literals for --keyMichael Brown1-0/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-24[image] Simplify image management commands and internal APIMichael Brown1-2/+0
Remove the name, cmdline, and action parameters from imgdownload() and imgdownload_string(). These functions now simply download and return an image. Add the function imgacquire(), which will interpret a "name or URI string" parameter and return either an existing image or a newly downloaded image. Use imgacquire() to merge similar image-management commands that currently differ only by whether they take the name of an existing image or the URI of a new image to download. For example, "chain" and "imgexec" can now be merged. Extend imgstat and imgfree commands to take an optional list of images. Remove the arbitrary restriction on the length of image names. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-04-24[parseopt] Allow for pre-initialised option setsMichael Brown1-0/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-03-27[parseopt] Add support for boolean optionsMichael Brown1-0/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-03-04[parseopt] Refer to online documentation for command helpMichael Brown1-6/+4
The online documentation (e.g. http://ipxe.org/cmd/ifopen), though not yet complete, is far more comprehensive than could be provided within the iPXE binary. Save around 200 bytes (compressed) by removing the command descriptions from the interactive help, and instead referring users directly to the web page describing the relevant command. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-11-21[parseopt] Add generic option-parsing libraryMichael Brown1-0/+127
Command implementations tend to include a substantial amount of common boilerplate code revolving around the parsing of command-line options and arguments. This increases the size cost of each command. Introduce an option-parsing library that abstracts out the common operations involved in command implementations. This enables the size of each individual command to be reduced, and also enhances consistency between commands. Total size of the library is 704 bytes, to be amortised across all command implementations. Signed-off-by: Michael Brown <mcb30@ipxe.org>