Skip to content

Commit

Permalink
feat: only show installed versions using list subparser
Browse files Browse the repository at this point in the history
  • Loading branch information
gaheldev committed Dec 27, 2023
1 parent 64420c1 commit cbc5ef5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion gdvm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def pick_version(default_item='system'):



if (args.subparser_name is None and args.list) or args.subparser_name == 'list':
if args.subparser_name == 'list':
app_manager.display_versions()
exit()

Expand Down
2 changes: 0 additions & 2 deletions gdvm/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
# Optional listing of available Godot version
parser_list = subparsers.add_parser('list', help=f'list managed Godot versions')

main_parser.add_argument('-l', '--list', action='store_true',
help=f'list managed Godot versions')

# Display current gdvm version
main_parser.add_argument('-v', '--version', action='store_true',
Expand Down

0 comments on commit cbc5ef5

Please sign in to comment.