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


Groups > comp.lang.python > #72109 > unrolled thread

Re: Check to see if the script has been previously used?

Started byChris Angelico <rosuav@gmail.com>
First post2014-05-27 21:08 +1000
Last post2014-05-27 21:08 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Check to see if the script has been previously used? Chris Angelico <rosuav@gmail.com> - 2014-05-27 21:08 +1000

#72109 — Re: Check to see if the script has been previously used?

FromChris Angelico <rosuav@gmail.com>
Date2014-05-27 21:08 +1000
SubjectRe: Check to see if the script has been previously used?
Message-ID<mailman.10367.1401188932.18130.python-list@python.org>
On Tue, May 27, 2014 at 9:05 PM, Dave Angel <davea@davea.name> wrote:
> Preferred approach is usually to respond to one of the
>  conventional argv switches.  And let the user decide.

Yes, this is a technique I've used when doing up important (and
dangerous) MUD commands. The command will be something like "unload
foo" and it gives its first-time spam, or "unload confirm foo" to
suppress it and go straight to the potentially-dangerous action. With
shell commands, a -f or --force parameter would be common for that.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web