diff --git a/git_sim/__main__.py b/git_sim/__main__.py index c3580bc..96c119c 100644 --- a/git_sim/__main__.py +++ b/git_sim/__main__.py @@ -125,7 +125,7 @@ def main( app.command()(git_sim.add.add) app.command()(git_sim.branch.branch) -app.command()(git_sim.cherrypick.cherrypick) +app.command()(git_sim.cherrypick.cherry_pick) app.command()(git_sim.commit.commit) app.command()(git_sim.log.log) app.command()(git_sim.merge.merge) diff --git a/git_sim/cherrypick.py b/git_sim/cherrypick.py index 28697f0..332b9d6 100644 --- a/git_sim/cherrypick.py +++ b/git_sim/cherrypick.py @@ -70,7 +70,7 @@ def construct(self): self.show_outro() -def cherrypick( +def cherry_pick( commit: str = typer.Argument( ..., help="The ref (branch/tag), or commit ID to simulate cherry-pick onto active branch",