Comments (2)
Yes, that is intentional -- global options are global.
Use namespaced option, i.e.
options.mytaskname.version
Is this working for you?
from paver.
Wait, would you please provide concrete example?
If you define option version
@task
@cmdopts([
("version=", "v", "Version"),
])
def testit(options):
print options.version
...then:
- If --version is provided, it takes precedence, thus this bud should not happen
- If not, than version from setuptools/distutils is provided
If you do not want the namespaced search to happen, use the namespaced parameter above.
Please reopen if this does not work for you.
from paver.
Related Issues (20)
- paver crash if open UTF-8 file on Windows 7 HOT 4
- Paver breaks "six" with Python 3.6 HOT 5
- Unvendor path HOT 1
- Drop bazaar
- Set up automatic changelog HOT 2
- Paver install doesn't work / python-six issue HOT 15
- Properly handling six installation HOT 2
- The official website on github headline is dead HOT 1
- doctools incompatible with Sphinx 1.7.0+
- Sharing arguments between tasks?
- [1.3.4] Install fails on python 3.6 HOT 6
- Doesn't work with virtualenv 20 HOT 3
- Remove unnecessary external modules HOT 3
- Paver's syspath is not correct when running directly
- @needs does not seem to work on Windows 10 HOT 4
- 1.3.4: bytecode compile fails HOT 2
- 1.3.4: on python 3.x issues installs paver/deps/path2.py HOT 2
- 1.3.4: pytest warnings HOT 1
- Proposing a PR to fix a few small typos HOT 1
- Chinese Translation Needed? HOT 2
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 paver.