added an example get_each_args.py

This commit is contained in:
kracekumar
2012-05-09 01:05:32 +05:30
parent c9bf3bac3a
commit afd410125d
4 changed files with 20 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
hi
+2 -1
View File
@@ -16,4 +16,5 @@ with indent(4, quote='>>>'):
puts(colored.red('NOT Files detected: ') + str(args.not_files))
puts(colored.red('Grouped Arguments: ') + str(dict(args.grouped)))
print
print
+13
View File
@@ -0,0 +1,13 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from clint import args
from clint.textui import puts, colored
all_args = args.grouped
for item in all_args:
if item is not '_':
puts(colored.red("key:%s"%item))
print(all_args[item].all)
+4
View File
@@ -0,0 +1,4 @@
echo "python get_each_args.py --name kracekumar --email me@kracekumar.com"
python get_each_args.py --name kracekumar --email me@kracekumar.com
echo "python get_each_args.py --languages python c html ruby --email me@kracekumar.com"
python get_each_args.py --langauges python c html ruby --email me@kracekumar.com