Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72109
| References | <CAG6fH=YuAYnkJHY1Az7sSsEhr++XbM4k=1+Vcs21LXV6Xuu=nw@mail.gmail.com> <CAPTjJmqLvLXHx9M47sEk1hjK9K+fdcrAy2ep4Uxhd1RUwE34Ew@mail.gmail.com> <lm1rg9$4rj$1@ger.gmane.org> |
|---|---|
| Date | 2014-05-27 21:08 +1000 |
| Subject | Re: Check to see if the script has been previously used? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10367.1401188932.18130.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Check to see if the script has been previously used? Chris Angelico <rosuav@gmail.com> - 2014-05-27 21:08 +1000
csiph-web