Skip to content

Commit

Permalink
set prog name
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Dec 18, 2023
1 parent f68f5fa commit 4504cfa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions amlslurm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def sinfo(vargs):
def sinfo(vargs=None):
import os
from azureml.core import Workspace
from azureml.core.authentication import AzureCliAuthentication
Expand Down Expand Up @@ -32,7 +32,7 @@ def sinfo(vargs):
print(line)


def squeue(vargs):
def squeue(vargs=None):
import os

try:
Expand Down Expand Up @@ -70,7 +70,7 @@ def squeue(vargs):
print(line)


def sbatch(vargs):
def sbatch(vargs=None):
import os

try:
Expand Down Expand Up @@ -98,6 +98,7 @@ def sbatch(vargs):
import argparse

parser = argparse.ArgumentParser(description='sbatch: submit jobs to Azure Machine Learning')
parser.prog = "sbatch"
parser.add_argument('-a', '--array', default="None", type=str, help='index for array jobs')
parser.add_argument('-p', '--partition', type=str, required=True,
help='set compute partition where the job should be run. Use <sinfo> to view available partitions')
Expand Down

0 comments on commit 4504cfa

Please sign in to comment.