Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4464

Re: [Python-de] Welches Zeichen, um "paarweise" Optionen zu trennen?

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Karsten Schulz <python@t800.ping.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Welches Zeichen, um "paarweise" Optionen zu trennen?
Date Wed, 18 May 2016 14:49:36 +0200
Lines 24
Message-ID <mailman.7.1463576322.27390.python-de@python.org> (permalink)
References <573C5BB8.9050709@goebel-consult.de> <511CE9B5-6F08-4F50-A2DB-FE702BB2B15D@t800.ping.de>
Mime-Version 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de 5JV4Bvf/NiGSSix07xRK7w8fv9Loma+snsg9NHuVot6Q==
Return-Path <python@t800.ping.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
X-Virus-Scanned Debian amavisd-new at hub.hirn.biz
X-Virus-Scanned Debian amavisd-new at mail.hirn.biz
In-Reply-To <573C5BB8.9050709@goebel-consult.de>
X-Mailer Apple Mail (2.2104)
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <511CE9B5-6F08-4F50-A2DB-FE702BB2B15D@t800.ping.de>
X-Mailman-Original-References <573C5BB8.9050709@goebel-consult.de>
Xref csiph.com de.comp.lang.python:4464

Show key headers only | View raw


Am 2016-05-18 um 14:10 schrieb Hartmut Goebel <h.goebel@goebel-consult.de>:
>  docker run --volumne $PWD:/vagrant ...
>  myprog --add-file SRC:DST ...
> 
> Der Doppelpunkt hat leider den Nachteil, dass er in Windows
> Laufwerksbuchstaben trennt.
> 
> Welches Zeichen schlagt Ihr vor oder habt Ihr in anderen Programmen gesehen?

Du verarbeitest pro Option eine Liste von Argumenten. Also ist das Komma das natürliche Trennzeichen:

docker run —volume $PWD,/vagrant
myprog —add-file SRC,DST

Dass die Liste nur zwei Werte hat sollte imho keinen Einfluss auf die Syntax haben

Gruß
Karsten

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] Welches Zeichen, um "paarweise" Optionen zu trennen? Karsten Schulz <python@t800.ping.de> - 2016-05-18 14:49 +0200

csiph-web