[explorer] Remove the unused starting command; add aliases to make (m) and place (p)

This commit is contained in:
Eryn Wells 2025-05-21 08:27:15 -07:00
parent 85c1a395c4
commit 10ba21f7e3

View file

@ -46,6 +46,7 @@ fn command_line() -> Command {
Command::new("make")
.arg(Arg::new("from").required(true))
.arg(Arg::new("to").required(true))
.alias("m")
.about("Make a move"),
)
.subcommand(
@ -53,6 +54,7 @@ fn command_line() -> Command {
.arg(Arg::new("color").required(true))
.arg(Arg::new("piece").required(true))
.arg(Arg::new("square").required(true))
.alias("p")
.about("Place a piece on the board"),
)
.subcommand(
@ -78,7 +80,6 @@ fn command_line() -> Command {
)
.subcommand(Command::new("print").about("Print the board"))
.subcommand(Command::new("quit").alias("exit").about("Quit the program"))
.subcommand(Command::new("starting").about("Reset the board to the starting position"))
}
#[derive(Clone, Debug, Error, Eq, PartialEq)]