Adding Google Flags-like command-line option parsing, though implemented in C, to the main executable. The code is ported from Granary2.

This commit is contained in:
Peter Goodman
2018-01-07 16:25:31 -05:00
parent 49524e610d
commit 2eaeb7480c
16 changed files with 525 additions and 10 deletions

View File

@@ -15,7 +15,7 @@
*/
#include <deepstate/DeepState.hpp>
/*
TEST(Streaming, BasicLevels) {
LOG(DEBUG) << "This is a debug message";
LOG(INFO) << "This is an info message";
@@ -32,7 +32,7 @@ TEST(Streaming, BasicTypes) {
LOG(INFO) << "string";
LOG(INFO) << nullptr;
}
*/
TEST(Formatting, OverridePrintf) {
printf("hello string=%s hex_lower=%x hex_upper=%X octal=%o char=%c dec=%d"
"double=%f sci=%e SCI=%E pointer=%p",
@@ -40,6 +40,7 @@ TEST(Formatting, OverridePrintf) {
printf("hello again!");
}
int main(void) {
int main(int argc, char *argv[]) {
DeepState_InitOptions(argc, argv);
return DeepState_Run();
}