summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c62bed422..50aaf99a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -144,6 +144,7 @@ enum {
SP_ARG_QUERY_ID,
SP_ARG_VERSION,
SP_ARG_VACUUM_DEFS,
+ SP_ARG_VERB_LIST,
SP_ARG_LAST
};
@@ -366,6 +367,11 @@ struct poptOption options[] = {
N_("Remove unused definitions from the defs section(s) of the document"),
NULL},
+ {"verb-list", 0,
+ POPT_ARG_NONE, NULL, SP_ARG_VERB_LIST,
+ N_("List the IDs of all the verbs in Inkscape"),
+ NULL},
+
POPT_AUTOHELP POPT_TABLEEND
};
@@ -1370,6 +1376,11 @@ sp_process_args(poptContext ctx)
exit(0);
break;
}
+ case SP_ARG_VERB_LIST: {
+ Inkscape::Verb::list();
+ exit(0);
+ break;
+ }
default: {
break;
}