Index: app/src/dgp/cmdline_dgp.ggo
===================================================================
--- app/src/dgp/cmdline_dgp.ggo	(revision 28e9ae0020002f67cf91ba795ab44945930c0e98)
+++ app/src/dgp/cmdline_dgp.ggo	(revision df77b87018c36b8848d9856d2cf774d23600b66d)
@@ -2,33 +2,9 @@
 version "0.1"
 
-#option  "process"	p	"Process segments with this tag."
-#				string no multiple
-
-#option  "select"	s	"Select only segments with this field. [Not implemented.]" 
-#				string no multiple
-
-#option  "ignore"	S	"Select only segments without this field. [Not implemented]" 
-#				string no multiple
-
-#option  "input"		f	"Input file"
-#				string typestr="filename" no
-
-#option  "output"	o	"Output file"
-#				string typestr="filename" no
-
-#option  "failed"	e	"Fail file"
-#				string typestr="filename" no
-
-#option  "copy"		c	"Copy unprocessed"
-#				flag off
-
 option	"grammar"	g	"Grammar file"
-				string typestr="filename" default="dgp.dg"
+				string typestr="filename" default="dgp.dgp"
 
 option  "long"		l	"Long output"
 				flag off
-
-#option  "interactive"	-	"Interactive use."
-#				flag off
 
 option  "debug"		d	"Debug mode."
@@ -40,3 +16,3 @@
 c - constraints	  n - node/arc counts	t - parse time
 "
-				string default="gh"
+string no default="h"
Index: app/src/dgp/main.cc
===================================================================
--- app/src/dgp/main.cc	(revision 13a8a67bce500a27f4c2121c096be175d5daab52)
+++ app/src/dgp/main.cc	(revision df77b87018c36b8848d9856d2cf774d23600b66d)
@@ -35,15 +35,19 @@
   gengetopt_args_info args;
 
-  if(cmdline_parser(argc,argv,&args) != 0) exit(1);
+  if(cmdline_parser(argc,argv,&args) != 0)
+    exit(1);
 
-  if(args.help_given) cmdline_parser_print_help ();
+  process_config_files(&args,argv[0]);
+  process_common_options(&args,argv[0]);
 
-  if(args.input_given)
-    if(!(inputf=fopen(args.input_arg,"r")))
-      fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1);
+//   if(args.help_given) cmdline_parser_print_help ();
 
-  if(args.output_given)
-    if(!(outputf=fopen(args.output_arg,"w")))
-      fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1);
+//   if(args.input_given)
+//     if(!(inputf=fopen(args.input_arg,"r")))
+//       fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1);
+
+//   if(args.output_given)
+//     if(!(outputf=fopen(args.output_arg,"w")))
+//       fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1);
 
   if(!(grammarf=fopen(args.grammar_arg,"r")))
