From 24d55114962c87bdb732a380f525e5afcdb1c828 Mon Sep 17 00:00:00 2001 From: jesusc Date: Wed, 5 Mar 2008 15:03:42 +0000 Subject: [PATCH] support/librarian/sdcclib.c:Added feature request 1908061: Synchronise sdcclib commands with ar git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5071 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ support/librarian/sdcclib.c | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 366f9105..12a89652 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-05 Jesus Calvino-Fraga + + * support/librarian/sdcclib.c:Added feature request 1908061: + Synchronise sdcclib commands with ar. + 2008-03-04 Frieder Ferlemann * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229), diff --git a/support/librarian/sdcclib.c b/support/librarian/sdcclib.c index 0ac4251c..603146fd 100644 --- a/support/librarian/sdcclib.c +++ b/support/librarian/sdcclib.c @@ -96,14 +96,14 @@ int set_options (char * opt) static char Help[] = "Usage: %s [-options] library relfile1 relfile2 relfile3 ...\n\n" "available options:\n" - "a - Adds relfile(s) to library. If relfile exists, replaces it.\n" - "l - Adds relfile list to library.\n" - "d - Deletes relfile(s) from library.\n" - "e - Extracts relfile(s) from library.\n" - "s - Dumps symbols of library.\n" - "m - Dumps modules of library.\n" - "v - Displays program version.\n" - "h - This help.\n"; + "a,r - Adds relfile(s) to library. If relfile exists, replaces it.\n" + "l - Adds relfile list to library.\n" + "d - Deletes relfile(s) from library.\n" + "e,x - Extracts relfile(s) from library.\n" + "s - Dumps symbols of library.\n" + "m - Dumps modules of library.\n" + "v - Displays program version.\n" + "h - This help.\n"; switch (opt[0]) { @@ -120,12 +120,14 @@ int set_options (char * opt) exit(1); break; case 'a': + case 'r': action=OPT_ADD_REL; break; case 'l': action=OPT_ADD_LIST; break; case 'e': + case 'x': action=OPT_EXT_REL; break; case 'd': -- 2.39.5