Programming-Idioms

History of Idiom 162 > diff from v7 to v8

Edit summary for version 8 :
New Python implementation by user [Oldboy]

Version 7

2017-09-02, 16:49:00

Version 8

2017-10-28, 13:18:02

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Imports
import sys
Code
if 'b' in sys.argv[1:]: bat()
if 'f' in sys.argv[1:]: fox()