From: sudarshan22 <sud...@gm...> - 2008-10-19 23:48:21
|
Hi, For my project, I need to accept the goal positions (x-pos, y-pos) as command line arguments. However, if the goal positions are negative numbers, the program prints an error message and exists. I found out that this is because of parse_args which does while(-1 != (ch = getopt(argc, argv, optflags))) I am not sure whether it is necessary to call parse_args but I have done so in my previous programs. If I wanted to include negative numbers as command line arguments and also call parse_args, what changes do I have to make in that function so that my program does not exit? Thanks. -- View this message in context: http://www.nabble.com/parse_args-negative-numbers-command-line-arguments-tp20061417p20061417.html Sent from the playerstage-users mailing list archive at Nabble.com. |