Command line

General news and announcements. Subscribe to the feed. Image
Post Reply
User avatar
RomCenter
Author
Author
Posts: 1520
Joined: Fri Sep 28, 2001 12:34 pm
Location: France
Contact:

Command line

Post by RomCenter »

Hi

Here is an example of the oncoming command line version of romcenter. It will be released by the end of the year.
CommandLine.gif
CommandLine.gif (245.76 KiB) Viewed 42574 times
Eric - RomCenter developer
Report bugs here.
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: Command line

Post by Wanderer »

Great news Eric. Thanks. :clap: :clap: :clap:
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: Command line

Post by Wanderer »

Hi Eric.

Here are some questions/comments/requests about the command line.

Update:
1. What if the database needs updating because its structure is of an older version? IMO an additional command-line option ("updatestructure" perhaps) might be useful, in order to check and update the DB structure if needed, perhaps with a switch to proceed without asking the user for confirmation. In the case of Update/Fix/Addrompath options though, the same process as described above should be followed.

Fix:
2. Same question as (1).

Addrompath:
3. Same question as (1).
4. If the path already exists in the DB, what happens? Is it not added and if yes, silently or an error is reported?

In all cases, if an error occurs, does rc.exe have a return value (in ERRORLEVEL env. var.)? In case of (4), if the path exists, does rc.exe return something other than 0? (EDIT: as i have discovered, in case of unhandled errors rc returns something different than 0. I don't know about handled errors though).

EDIT:
P.S.1: In "rc update", "rc fix" and "rc addrompath" help text, the last line is ".rdt file (pos.0)". What does "pos 0" mean (or maybe a typo)?
P.S.2: Perhaps you might want to check the names of the flags in each command, for more uniformity and less confusion. For instance, "-o" in create (which at first, seems logical) but nothing for the other three options? It could be -db in all options, or -r (for rdt). Also, -d in create but -u in update for the same thing? Since they are both "datafile", why not use -d in both options?
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: Command line

Post by Wanderer »

Hi Eric,

Along with the "updatestructure" option, i have a request for 2 additional command-line actions: RemoveROMPath and RemoveAllROMPaths. They would complement the "addrompath" option nicely and give the ability to mass-setup rompaths in databases.
smoklokok
PacMan
PacMan
Posts: 7
Joined: Mon Mar 07, 2022 6:11 pm

Re: Command line

Post by smoklokok »

Which version is this, and 4.1.0 is the newest version of romcenter?
Post Reply