13.09.2015
# congrats.py
import sys
def main():
'''You can use this programm in this way: congrats.py [your_name]'''
if len(sys.argv) > 1:
if sys.argv[1] == '--h' or sys.argv[1] == '-help':
print('\n' + main.__doc__)
else:
print("\nCongratulations, %s! Happy Programmer's Day!" % sys.argv[1])
else:
print('''
In this little programm I'd like to congratulate all programmers around the world with our professional day!
It doesn't matter if you're a professional programmer, or you're still studying, or programming is just a hobby for you.
The only one thing is important that you really love this!
Let's celebrate!, warriors of compilers and translators!''')
if __name__ == '__main__':
main()