Comments (4)
Hi @marcodelapierre, thanks for the report.
I looked into the issue and I can confirm the detection of option values separated by whitespace is not working as intended. We are currently working on fixing this.
In the meantime, you could use the "adjacent" style, i.e. providing the value in the same token as the option. I verified this works with both long and short options in Sarus 1.1.0:
# long option: '=' works as separator
amadonna@localhost:~> sarus run --workdir=/home alpine pwd
/home
# short option: value starts right after the option character
amadonna@localhost:~> sarus run -w/home alpine pwd
/home
from sarus.
Cheers Alberto, to be honest I hadn't tried the adjacent style, I can confirm it works beautifully
from sarus.
Hi @marcodelapierre,
as of version 1.3.0 Sarus correctly detects CLI option values separated by whitespace:
# workdir from image
amadonna@localhost:~> srun -C gpu sarus run ubuntu pwd
/
# change workdir using long option and value separated by whitespace
amadonna@localhost:~> sarus run --workdir /home ubuntu pwd
/home
# change workdir using short option and value separated by whitespace
amadonna@localhost:~> sarus run -w /home ubuntu pwd
/home
from sarus.
thanks for the update Alberto!
from sarus.
Related Issues (20)
- CI with sarus requires docker-in-docker style containers
- Pull non-latest tag HOT 2
- Issue when just appending flags for image with entrypoint set HOT 2
- Suggestion: documentation link at top of repo HOT 2
- Too many cpus requested HOT 2
- Going rootless
- Failed to retrieve username for uid=xxxxx HOT 5
- Help needed configuring oci nvidia hook HOT 3
- RDMA failed to open device HOT 2
- unable to build HOT 2
- Comparison to other tools like singularity HOT 4
- support for insecure registries HOT 3
- Error sending request to remote registry HOT 11
- home basedir hard-coded HOT 3
- InfiniBand support HOT 1
- Sarus spack recipe inside main Spack repo?
- Race condition with static auth.json filename HOT 2
- Avoiding ldconfig HOT 4
- Option to whitelist/blacklist captured host's environment variables
- Preserve color output HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sarus.