Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Jun 1, 2024
1 parent 43e95dc commit 1194c4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -4762,12 +4762,12 @@ def __set_repeat_count(self, argv: List[str], from_tty: bool) -> None:


@register
class PieCommand(GenericCommand):
"""Manage the current loaded architecture"""
class ArchCommand(GenericCommand):
"""Manage the current loaded architecture."""

_cmdline_ = "arch"
_syntax_ = f"{_cmdline_} (list|get|set) ..."
_example_ = f"{_cmdline_}"
_example_ = f"{_cmdline_} set X86"

def __init__(self) -> None:
super().__init__(prefix=True)
Expand All @@ -4780,7 +4780,7 @@ def do_invoke(self, argv: List[str]) -> None:

@register
class ArchGetCommand(GenericCommand):
"""Get the current loaded architecture"""
"""Get the current loaded architecture."""

_cmdline_ = "arch get"
_syntax_ = f"{_cmdline_}"
Expand All @@ -4793,18 +4793,18 @@ def do_invoke(self, args: List[str]) -> None:

@register
class ArchSetCommand(GenericCommand):
"""Set the current loaded architecture"""
"""Set the current loaded architecture."""

_cmdline_ = "arch set"
_syntax_ = f"{_cmdline_} <arch>"
_example_ = f"{_cmdline_}"
_example_ = f"{_cmdline_} X86"

def do_invoke(self, args: List[str]) -> None:
reset_architecture(args[0] if args else None)

@register
class ArchListCommand(GenericCommand):
"""List the available architectures"""
"""List the available architectures."""

_cmdline_ = "arch list"
_syntax_ = f"{_cmdline_}"
Expand Down

0 comments on commit 1194c4c

Please sign in to comment.