diff options
author | midipix <writeonce@midipix.org> | 2016-03-06 09:25:09 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-08 14:21:06 -0500 |
commit | efd47f8650a7381ef2c2cf30df7971d6caae9b96 (patch) | |
tree | 3e9a315b671e5a3bc058934d5927fd49fc2521fb | |
parent | 803034870d84448eecf1a15bd0861c4c2f8ab957 (diff) | |
download | slibtool-efd47f8650a7381ef2c2cf30df7971d6caae9b96.tar.bz2 slibtool-efd47f8650a7381ef2c2cf30df7971d6caae9b96.tar.xz |
driver: created primary option table.
-rw-r--r-- | src/internal/slibtool_driver_impl.h | 11 | ||||
-rw-r--r-- | src/skin/slbt_skin_default.c | 49 |
2 files changed, 60 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h index d8e3111..ff54526 100644 --- a/src/internal/slibtool_driver_impl.h +++ b/src/internal/slibtool_driver_impl.h @@ -13,7 +13,18 @@ extern const struct argv_option slbt_default_options[]; enum app_tags { TAG_HELP, + TAG_HELP_ALL, TAG_VERSION, + TAG_CONFIG, + TAG_DEBUG, + TAG_DRY_RUN, + TAG_FEATURES, + TAG_MODE, + TAG_WARNINGS, + TAG_DEPS, + TAG_SILENT, + TAG_TAG, + TAG_VERBOSE, }; struct slbt_driver_ctx_impl { diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c index aac029f..5e94612 100644 --- a/src/skin/slbt_skin_default.c +++ b/src/skin/slbt_skin_default.c @@ -8,5 +8,54 @@ const struct argv_option slbt_default_options[] = { {"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,0,0, "show usage information"}, + {"help-all", 'h',TAG_HELP_ALL,ARGV_OPTARG_NONE,0,0,0, + "show comprehensive help information"}, + + {"mode", 0,TAG_MODE,ARGV_OPTARG_REQUIRED,0, + "clean|compile|execute|finish" + "|install|link|uninstall",0, + "set the execution mode"}, + + {"dry-run", 'n',TAG_DRY_RUN,ARGV_OPTARG_NONE,0,0,0, + "do not spawn any processes, " + "do not make any changes to the file system"}, + + {"tag", 0,TAG_TAG,ARGV_OPTARG_REQUIRED,0, + "CC|CXX",0, + "a universal playground game"}, + + {"config", 0,TAG_CONFIG,ARGV_OPTARG_NONE,0,0,0, + "display configuration information"}, + + {"debug", 0,TAG_DEBUG,ARGV_OPTARG_NONE,0,0,0, + "display internal debug information"}, + + {"features", 0,TAG_FEATURES,ARGV_OPTARG_NONE,0,0,0, + "show feature information"}, + + {"no-warnings", 0,TAG_WARNINGS,ARGV_OPTARG_NONE,0,0,0,""}, + + {"preserve-dup-deps", 0,TAG_DEPS,ARGV_OPTARG_NONE,0,0,0, + "leave the dependency list alone"}, + + {"quiet", 0,TAG_SILENT,ARGV_OPTARG_NONE,0,0,0, + "do not say anything"}, + + {"silent", 0,TAG_SILENT,ARGV_OPTARG_NONE,0,0,0, + "say absolutely nothing"}, + + {"verbose", 0,TAG_VERBOSE,ARGV_OPTARG_NONE,0,0,0, + "generate lots of informational messages " + "that nobody can understand"}, + + {"warnings", 0,TAG_WARNINGS,ARGV_OPTARG_REQUIRED,0, + "all|none|error",0, + "set the warning reporting level"}, + + {"W", 0,TAG_WARNINGS,ARGV_OPTARG_REQUIRED, + ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_JOINED, + "all|none|error","", + "convenient shorthands for the above"}, + {0,0,0,0,0,0,0,0} }; |