Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72109 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-05-27 21:08 +1000 |
| Last post | 2014-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.
Re: Check to see if the script has been previously used? Chris Angelico <rosuav@gmail.com> - 2014-05-27 21:08 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-05-27 21:08 +1000 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web