aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/main.cc b/src/main.cc
index 2132ccb..ed88912 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -36,21 +36,24 @@ int main(int argc, char **argv)
dup2(1, 2);
/* Parse the command line */
- while ((c = getopt(argc, argv, "hvp")) != EOF) {
- switch (c) {
- case 'h': /* print help message */
- usage();
- break;
- case 'v': /* emit additional diagnostic info */
- verbose = true;
- break;
- case 'p': /* don't print a prompt */
- emit_prompt = 0; /* handy for automatic testing */
- break;
- default:
- usage();
- }
- }
+
+ exe_option(argv);
+
+ // while ((c = getopt(argc, argv, "hvp")) != EOF) {
+ // switch (c) {
+ // case 'h': /* print help message */
+ // usage();
+ // break;
+ // case 'v': /* emit additional diagnostic info */
+ // verbose = true;
+ // break;
+ // case 'p': /* don't print a prompt */
+ // emit_prompt = 0; /* handy for automatic testing */
+ // break;
+ // default:
+ // usage();
+ // }
+ // }