1
# Copyright (C) 2011 David Manzanares <manxi.david@gmail.com>
2
#This file is part of PyEffect.
4
# PyEffect is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
9
# PyEffect is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with PyEffect. If not, see <http://www.gnu.org/licenses/>.
17
#This is the PyEffect argument parser
20
#Check all the arguments given to PyEffect
22
#Third party libraries:
25
#These vars are read by the other modules
44
"""Parse all arguments"""
59
if arg == "--version":
62
elif arg == "-c" or arg == "--clean":
64
elif arg == "-e" or arg == "--execute":
66
elif arg == "-q" or arg == "--quiet":
68
elif arg == "-k" or arg == "--keep":
70
elif arg == "-v" or arg == "--verbose":
72
elif arg == "-g" or arg == "--gstabs":
81
elif arg[0:7] == "--arch=":
83
elif arg == "--color":
86
elif arg == "-h" or arg == "--help":
90
print "Error, argument (" + repr(arg) + ") invalid"
95
out.error("There is no target, please check usage with: cec --help")
98
"""Print the version and exit"""
102
"""Clean the directory"""