added help for arguments in case user doesn't give any arguments (#138)

This commit is contained in:
Pavel Tcherniaev
2023-12-13 10:55:40 -08:00
committed by GitHub
parent 9a78101d22
commit 5930f15c1a
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ int main(int argc, char **argv) {
Rect *p_crop_rect = nullptr;
OutputSurfaceMemoryType mem_type = OUT_SURFACE_MEM_DEV_INTERNAL; // set to internal
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {
+1 -1
View File
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
OutputSurfaceMemoryType mem_type = OUT_SURFACE_MEM_DEV_INTERNAL; // set to internal
bool b_force_zero_latency = false;
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {
+1 -1
View File
@@ -83,7 +83,7 @@ int main(int argc, char **argv) {
Rect *p_crop_rect = nullptr;
OutputSurfaceMemoryType mem_type = OUT_SURFACE_MEM_DEV_INTERNAL; // set to internal
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {
@@ -76,7 +76,7 @@ void ParseCommandLine(std::deque<FileInfo> *multi_file_data, int &device_id, boo
std::string file_list_path;
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {
+1 -1
View File
@@ -80,7 +80,7 @@ int main(int argc, char **argv) {
OutputSurfaceMemoryType mem_type = OUT_SURFACE_MEM_DEV_INTERNAL; // set to internal
bool b_force_zero_latency = false;
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {
+1 -1
View File
@@ -166,7 +166,7 @@ int main(int argc, char **argv) {
int rgb_width;
// Parse command-line arguments
if(argc < 1) {
if(argc <= 1) {
ShowHelpAndExit();
}
for (int i = 1; i < argc; i++) {