From ae955083e27b955b922052e7a92460421da4f176 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 20 Mar 2011 15:38:56 -0400 Subject: [PATCH] new not_files support. --- README.rst | 1 - examples/args.py | 3 ++- examples/args.sh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index c2e48f8..8def0b3 100644 --- a/README.rst +++ b/README.rst @@ -127,7 +127,6 @@ sure you add yourself to AUTHORS_. Roadmap ------- - Indent ``\n`` injection -- args.not_files support - Unittests - Sphinx Documentation - Python 2.5, 3.1, 3.2 Support diff --git a/examples/args.py b/examples/args.py index 8c4bce8..09301b3 100644 --- a/examples/args.py +++ b/examples/args.py @@ -11,8 +11,9 @@ from clint.textui import puts, colored, indent with indent(4, quote='>>>'): puts(colored.red('Aruments passed in: ') + str(args.all)) - puts(colored.red('Flags detected: ') + str(args.only_flags)) + puts(colored.red('Flags detected: ') + str(args.flags)) puts(colored.red('Files detected: ') + str(args.files)) + puts(colored.red('NOT Files detected: ') + str(args.not_files)) puts(colored.red('Grouped Arguments: ') + str(dict(args.grouped))) print \ No newline at end of file diff --git a/examples/args.sh b/examples/args.sh index ae5a000..f7ede90 100755 --- a/examples/args.sh +++ b/examples/args.sh @@ -10,3 +10,6 @@ python args.py *.py echo 'A few non-expanded file arguments:' python args.py '*.py' + +echo 'A few mixed files/flags/arguments:' +python args.py '*.py' --test test face book -s ~/.ssh