OSDN Git Service

There are cases when the long options are of the format abc-def. In current implement...
authorAshwini Sharma <ak.ashwini1981@gmail.com>
Wed, 19 Mar 2014 18:57:06 +0000 (13:57 -0500)
committerAshwini Sharma <ak.ashwini1981@gmail.com>
Wed, 19 Mar 2014 18:57:06 +0000 (13:57 -0500)
commit64f61640880011b991931ac30371719edd88e65d
tree2de61ccc62d5b3d7c37b8e73c6452a1168e8b5ce
parent817d97ba626f86c376cb8311c099ea5f010205d5
There are cases when the long options are of the format abc-def. In current implementation FLAG_xxx macros are generated for long options too. with __-__ sign in the macro, it will generate errors.

I am of the opinion that __-__ be converted to '_' for generating the FLAG_xxx macros and be used in the command.

This will enable the user to 'abc-def', but be handled like 'abc_def' in code.
scripts/mkflags.c