Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
singularity on pypi), and the versions here will coincide with these releases.

## [master](https://github.com/singularityhub/singularity-cli/tree/master)
- ensure options and args from instance init are honored (0.0.15)
- choose output for stream_command (0.0.14)
- adding support to pull from a url (0.1.13)
- add more verbosity to instance start/stop (0.1.12)
Expand Down
3 changes: 2 additions & 1 deletion spython/instance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self, image, start=True, name=None, quiet=True, **kwargs):

# Update metadats from arguments
self._update_metadata(kwargs)
self.options = []
self.options = kwargs.get("options", [])
self.args = kwargs.get("args", [])
self.cmd = []
self.quiet = quiet

Expand Down
4 changes: 4 additions & 0 deletions spython/instance/cmd/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def start(

cmd = self._init_command(subgroup, singularity_options)

# Set options and args
args = args or self.args
options = options or self.options

# Add options, if they are provided
if not isinstance(options, list):
options = [] if options is None else options.split(" ")
Expand Down
2 changes: 1 addition & 1 deletion spython/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


__version__ = "0.1.14"
__version__ = "0.1.15"
AUTHOR = "Vanessa Sochat"
AUTHOR_EMAIL = "vsochat@stanford.edu"
NAME = "spython"
Expand Down