[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 ,""}
};
- [lmi-commits] [lmi] master updated (c79894b -> f241d25), Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b2b7b4 2/7: Withdraw an unnecessary friendship, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 9b0f657 1/7: Improve documentation, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master ab481ed 4/7: Consolidate and renumber octal options, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 6ab9a90 5/7: Sort short options alphabetically,
Greg Chicares <=
- [lmi-commits] [lmi] master 5477797 3/7: Add '--prospicience' command-line argument for CLI binary, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master 5de4ac2 6/7: Add an inchoate '--test_db' option, Greg Chicares, 2019/03/04
- [lmi-commits] [lmi] master f241d25 7/7: Make CLI and GUI getopt code more similar, Greg Chicares, 2019/03/04