Stefan Knoblich 659ea9f117 freeswitch: Move usage description out of main() and improve cmdline option handling.
Move empty cmdline option string check and "-help/-h/-?" handling to top of loop.

Emit a proper error message for unknown options. (Just displaying the
usage description, but not telling the user which option was wrong, is bad mojo).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
..
2012-07-06 17:54:21 -05:00
2009-02-16 07:12:17 +00:00
2012-07-03 09:01:27 -05:00
2010-06-28 15:49:19 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-07-10 22:44:11 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-06-11 13:05:29 +00:00
2012-06-11 13:05:29 +00:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-05-10 22:34:37 -05:00
2012-05-23 13:13:32 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-07-06 17:54:21 -05:00
2012-06-11 13:05:29 +00:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-07-02 15:12:55 -05:00
2012-06-04 09:24:42 -05:00
2012-06-23 14:55:11 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2010-03-15 18:01:38 +00:00
2012-04-18 11:52:02 -05:00
2012-07-06 11:12:14 -05:00
2012-04-18 11:52:02 -05:00
2012-06-22 18:15:06 -05:00
2012-04-18 11:52:02 -05:00
2012-07-04 23:06:32 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00