Comments (4)
I can't reproduce, I tried julia 0.6, 0.7 and 1.0. I'm on linux using bash:
$ julia-1.0 argparse_example1.jl --opt1 "test test2"
Parsed args:
arg1 => nothing
opt1 => "test test2"
opt2 => nothing
What's your julia version/OS/terminal?
from argparse.jl.
Macos 10.13.6, Julia 1.0, fish and bash (happens in both).
It seems that it is a Julia quirk though, not related to ArgParse. I get the same parsing result (test1
and test2
separate) if I just println(ARGS)
in Julia, but in Python they stay together as one argument.
from argparse.jl.
Possibly a problem specific to MacOS then. You should probably see if there's an issue open about this on julia, or open one yourself if not.
from argparse.jl.
Turned out it was my mistake, I called julia via a bash script with $@
unquoted.
from argparse.jl.
Related Issues (20)
- Parsing failure with as_symbols=true and commands_are_required=false HOT 3
- Using arguments in the REPL HOT 3
- TagBot trigger issue HOT 6
- `required` arguments are called optional in help text HOT 3
- Parsing a numeric vector HOT 1
- Argument missing from parsed dict HOT 2
- First argument parsed incorrectly
- Make the "type:" and "default:" string automatically generated by `--help` optional
- Support nested options
- How to separate julia options? HOT 1
- ArgParse modifies global random state? HOT 2
- Return a NamedTuple instread of a Dict? HOT 1
- Make ArgParseError richer HOT 1
- Customize the handling of unrecognized options.
- Feature request: support REPL usage
- as_symbols not working on :_COMMAND_ entry HOT 3
- Idea to update `parse_item`? HOT 2
- Use constructors in addition to `convert` to parse unknown types
- Type conversion fails on valid input HOT 5
- Shell completion generation
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 argparse.jl.