lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 6ab9a90 5/7: Sort short options alphabeticall


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6ab9a90 5/7: Sort short options alphabetically
Date: Mon, 4 Mar 2019 12:06:41 -0500 (EST)

branch: master
commit 6ab9a90729aa06f918d12bfdd3008e85ca281d74
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Sort short options alphabetically
    
    This revision makes it easier to maintain lists of options that are
    nearly the same.
    
    Fixed the description of '--print_db' so that it says "and exit" in
    both cases, because that's the actual behavior for both. Rephrased
    this description for terseness.
---
 main_cli.cpp | 14 +++++++-------
 skeleton.cpp |  6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/main_cli.cpp b/main_cli.cpp
index 3d8aff3..6575b0d 100644
--- a/main_cli.cpp
+++ b/main_cli.cpp
@@ -166,16 +166,16 @@ void process_command_line(int argc, char* argv[])
         {"mellon"       ,NO_ARG   ,0 ,002 ,0 ,"pedo mellon a minno"},
         {"mello"        ,NO_ARG   ,0 ,077 ,0 ,"fraud"},
         {"prospicience" ,REQD_ARG ,0 ,003 ,0 ,"validation date"},
-        {"pyx"          ,REQD_ARG ,0 ,'x' ,0 ,"for docimasy"},
-        {"help"         ,NO_ARG   ,0 ,'h' ,0 ,"display this help and exit"},
-        {"license"      ,NO_ARG   ,0 ,'l' ,0 ,"display license and exit"},
         {"accept"       ,NO_ARG   ,0 ,'a' ,0 ,"accept license (-l to 
display)"},
-        {"selftest"     ,NO_ARG   ,0 ,'s' ,0 ,"perform self test and exit"},
-        {"profile"      ,NO_ARG   ,0 ,'o' ,0 ,"set up for profiling and exit"},
+        {"data_path"    ,REQD_ARG ,0 ,'d' ,0 ,"path to data files"},
         {"emit"         ,REQD_ARG ,0 ,'e' ,0 ,"choose what output to emit"},
         {"file"         ,REQD_ARG ,0 ,'f' ,0 ,"input file to run"},
-        {"data_path"    ,REQD_ARG ,0 ,'d' ,0 ,"path to data files"},
-        {"print_db"     ,NO_ARG   ,0 ,'p' ,0 ,"print product databases and 
exit"},
+        {"help"         ,NO_ARG   ,0 ,'h' ,0 ,"display this help and exit"},
+        {"license"      ,NO_ARG   ,0 ,'l' ,0 ,"display license and exit"},
+        {"profile"      ,NO_ARG   ,0 ,'o' ,0 ,"set up for profiling and exit"},
+        {"print_db"     ,NO_ARG   ,0 ,'p' ,0 ,"print products and exit"},
+        {"selftest"     ,NO_ARG   ,0 ,'s' ,0 ,"perform self test and exit"},
+        {"pyx"          ,REQD_ARG ,0 ,'x' ,0 ,"for docimasy"},
         {0              ,NO_ARG   ,0 ,0   ,0 ,""}
       };
 
diff --git a/skeleton.cpp b/skeleton.cpp
index f6b760d..2bac0bf 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -1198,11 +1198,11 @@ bool Skeleton::ProcessCommandLine()
         {"mellon"       ,NO_ARG   ,0 ,002 ,0 ,"pedo mellon a minno"},
         {"mello"        ,NO_ARG   ,0 ,077 ,0 ,"fraud"},
         {"prospicience" ,REQD_ARG ,0 ,003 ,0 ,"validation date"},
+        {"data_path"    ,REQD_ARG ,0 ,'d' ,0 ,"path to data files"},
+        {"file"         ,REQD_ARG ,0 ,'f' ,0 ,"input file to run"},
         {"help"         ,NO_ARG   ,0 ,'h' ,0 ,"display this help and exit"},
+        {"print_db"     ,NO_ARG   ,0 ,'p' ,0 ,"print products and exit"},
         {"pyx"          ,REQD_ARG ,0 ,'x' ,0 ,"for docimasy"},
-        {"file"         ,REQD_ARG ,0 ,'f' ,0 ,"input file to run"},
-        {"data_path"    ,REQD_ARG ,0 ,'d' ,0 ,"path to data files"},
-        {"print_db"     ,NO_ARG   ,0 ,'p' ,0 ,"print product databases"},
         {0              ,NO_ARG   ,0 ,0   ,0 ,""}
       };
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]