Morten Nilsen wrote:
Here's a complete patch for the ecore_config tool;

- implement list (heap sort with pathcmp)
- tweak get, adding type
- remove get_type (obsoleted by get tweak)
- use getopt
- add some checks
- add del

find attached a patch against the previous one, that adds a check if command was specified

--
Morten
--- ecore_config.c~     2005-12-05 03:07:42.363033309 +0100
+++ ecore_config.c      2005-12-05 03:08:52.519317325 +0100
@@ -209,6 +209,9 @@
                }
        }
 
+       if(cmd == 's' && type == -1)
+               usage_and_exit(prog, 2, "You need to specify a command!\n");
+
        if(cmd != 'a' && key == NULL)
                usage_and_exit(prog, 2, "You need to specify key!\n");
        

Reply via email to