summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/parseopt.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/parseopt.c b/src/core/parseopt.c
index 451ebaf54..24a576244 100644
--- a/src/core/parseopt.c
+++ b/src/core/parseopt.c
@@ -126,6 +126,21 @@ int parse_image ( const char *text, struct image **image ) {
}
/**
+ * Parse flag
+ *
+ * @v text Text (ignored)
+ * @ret flag Flag to set
+ * @ret rc Return status code
+ */
+int parse_flag ( const char *text __unused, int *flag ) {
+
+ /* Set flag */
+ *flag = 1;
+
+ return 0;
+}
+
+/**
* Print command usage message
*
* @v cmd Command descriptor