Skip to content

Commit

Permalink
Rename --correct-mia to --list-mia
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Nov 28, 2024
1 parent 3d66b7a commit 805092d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/ckstatus.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ runs
.Op Fl Fl changes
.Op Fl Fl config Ar file
.Op Fl Fl correct
.Op Fl Fl correct-mia
.Op Fl h , Fl Fl help
.Op Fl Fl list-mia
.Op Fl Fl list-sets
.Op Fl Fl missing
.Op Fl Fl runs
Expand Down Expand Up @@ -76,10 +76,10 @@ Read the configuration from
.Ar file .
.It Fl Fl correct
List all correct ROMs.
.It Fl Fl correct-mia
List all correct ROMs that are MIA according to the database.
.It Fl h , Fl Fl help
Show a short help.
.It Fl Fl list-mia
List all games containing ROMs that are MIA according to the database.
.It Fl Fl list-sets
List all configured sets, for the
.Fl Fl set
Expand Down
2 changes: 1 addition & 1 deletion src/CkStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CkStatus : public Command {
ALL_MISSING,
CHANGES,
CORRECT,
CORRECT_MIA,
LIST_MIA,
MISSING,
RUNS,
SUMMARY
Expand Down
8 changes: 4 additions & 4 deletions src/ckstatus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
std::vector<Commandline::Option> ckstatus_options = {
Commandline::Option("all-missing", "list missing games"),
Commandline::Option("changes", "list changes between runs"), Commandline::Option("correct", "list correct games"),
Commandline::Option("correct-mia", "list correct games marked MIA"),
Commandline::Option("list-mia", "list games containing files marked MIA"),
Commandline::Option("missing", "list missing games not marked MIA"),
// Commandline::Option("run", "RUN", "use information from run RUN (default: latest)"),
Commandline::Option("runs", "list runs"), Commandline::Option("summary", "print summary")};
Expand Down Expand Up @@ -77,8 +77,8 @@ void CkStatus::global_setup(const ParsedCommandline& commandline) {
else if (option.name == "correct") {
specials.insert(CORRECT);
}
else if (option.name == "correct-mia") {
specials.insert(CORRECT_MIA);
else if (option.name == "list-mia") {
specials.insert(LIST_MIA);
}
else if (option.name == "missing") {
specials.insert(MISSING);
Expand Down Expand Up @@ -127,7 +127,7 @@ bool CkStatus::execute(const std::vector<std::string>& arguments) {
list_games(GS_CORRECT, GS_CORRECT_MIA);
break;

case CORRECT_MIA:
case LIST_MIA:
list_games(GS_CORRECT_MIA, GS_PARTIAL_MIA);
break;

Expand Down

0 comments on commit 805092d

Please sign in to comment.