diff --git a/remotepy/instance.py b/remotepy/instance.py index 7dffd4b..5b5211c 100644 --- a/remotepy/instance.py +++ b/remotepy/instance.py @@ -441,9 +441,11 @@ def type( type: str = typer.Argument( None, help="Type of instance to convert to. If none, will print the current instance type.", - ) + ), + instance_name: str = typer.Argument(None, help="Instance name") ): - instance_name = get_instance_name() + if not instance_name: + instance_name = get_instance_name() instance_id = get_instance_id(instance_name) current_type = get_instance_type(instance_id) diff --git a/setup.cfg b/setup.cfg index 3ed75ed..5989c79 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = remotepy -version = 0.1.8 +version = 0.1.9 author = Matthew Upson author_email = matthew.a.upson@gmail.com description = Utility for managing ec2 instances