diff options
author | David Runge <david.runge@frqrec.com> | 2014-02-15 01:35:49 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-02-15 01:35:49 +0100 |
commit | de627b641caf475df43dc3bb6cf6a59ae2297bd0 (patch) | |
tree | 69890a197bf84a6c89b48f575d8d22b545b87b4c /random241arg.py | |
parent | 29d861e10548e25339e24cfd2db1e3a9fc748e41 (diff) | |
download | random241-de627b641caf475df43dc3bb6cf6a59ae2297bd0.tar.gz random241-de627b641caf475df43dc3bb6cf6a59ae2297bd0.tar.bz2 random241-de627b641caf475df43dc3bb6cf6a59ae2297bd0.tar.xz random241-de627b641caf475df43dc3bb6cf6a59ae2297bd0.zip |
Committing deletes, updating .gitignore
Diffstat (limited to 'random241arg.py')
-rwxr-xr-x | random241arg.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/random241arg.py b/random241arg.py deleted file mode 100755 index 4bd00d8..0000000 --- a/random241arg.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python2 - -from sys import argv - - -def read_params(): - # Checks the given parameters - info = """Use the program as following: - random241.py [option] <param> ... - Options: - -c number of cam to use (starts with first found camera 0 (default)) - -r remote address to send the output to (standard 192.168.0.7) - """ - default = {'-c': "1", '-r': "192.168.0.7"} - parameters = default.copy() - if len(argv) != 3: - for i in xrange(1, len(argv) - 1, 2): - if argv[i] in parameters: - parameters[argv[i]] = argv[i + 1] - else: - print info - return 0 - return parameters - else: - return default |