Skip to content

Commit

Permalink
Fix #89
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu authored and casperdcl committed Mar 30, 2023
1 parent 1eb80f6 commit a29de95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shtab/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import sys
from importlib import import_module

from . import SUPPORTED_SHELLS, __version__, complete
from . import SUPPORTED_SHELLS, __version__, add_argument_to, complete

log = logging.getLogger(__name__)


def get_main_parser():
parser = argparse.ArgumentParser(prog="shtab")
add_argument_to(parser)
parser.add_argument("parser", help="importable parser (or function returning parser)")
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
parser.add_argument("-s", "--shell", default=SUPPORTED_SHELLS[0], choices=SUPPORTED_SHELLS)
Expand Down

0 comments on commit a29de95

Please sign in to comment.