fix 2 samples compile error caused by App's change

This commit is contained in:
houzh 2023-06-02 13:42:33 +00:00
parent 8a7b2863ab
commit 98de38ea9c
2 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,9 @@
#include <getopt.h>
#include <app/alertdialog.h>
static struct option app_options[]={
{"dialog",required_argument,0,0},
{"items" ,required_argument,0,0}
std::vector<CLA::Argument> app_options={
{CLA::EntryType::Switch, "", "dialog" ,"Show FPS ",CLA::ValueType::None, (int)CLA::EntryFlags::Optional},
{CLA::EntryType::Switch, "", "items" , "Show FPS ",CLA::ValueType::None, (int)CLA::EntryFlags::Optional}
};
int main(int argc,const char*argv[]){

View File

@ -39,9 +39,9 @@ public:
ViewGroup::onDraw(canvas);
}
};
static struct option appargs[]={
{"type" ,1,0,0},
{0,0,0,0}
std::vector<CLA::Argument> appargs={
{CLA::EntryType::Switch, "", "type" , "animation type ",CLA::ValueType::None, (int)CLA::EntryFlags::Optional}
};
int main(int argc,const char*argv[]){