Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 220388d

Browse files
committed
right name and bug fix (script required)
1 parent fdee391 commit 220388d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paperspace/cli/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from paperspace.constants import RunMode
1010

1111

12-
@cli.command("new-run")
12+
@cli.command("run")
1313
@click.option("-c", "--python-command", "mode", flag_value=RunMode.RUN_MODE_PYTHON_COMMAND)
1414
@click.option("-m", "--module", "mode", flag_value=RunMode.RUN_MODE_PYTHON_MODULE)
1515
@click.option("-s", "--shell", "mode", flag_value=RunMode.RUN_MODE_SHELL_COMMAND)
1616
@common_jobs_create_options
17-
@click.argument("script", nargs=-1)
17+
@click.argument("script", nargs=-1, required=True)
1818
@common.api_key_option
1919
def run(api_key, **kwargs):
2020
del_if_value_is_none(kwargs)

tests/functional/test_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class TestRunCommand(object):
12-
command_name = 'new-run'
12+
command_name = 'run'
1313
common_commands = ["--name", "test", "--projectId", "projectId", "--apiKey", "some_key"]
1414
url = "https://api.paperspace.io/jobs/createJob/"
1515
headers = default_headers.copy()

0 commit comments

Comments
 (0)