diff options
-rwxr-xr-x | uprofile.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uprofile.py b/uprofile.py index 3084e66..6a602ab 100755 --- a/uprofile.py +++ b/uprofile.py @@ -139,7 +139,10 @@ class UniversalProfileTool: printsystem.print_exception(Exception(\ 'No such option/profile "' + args[0] + \ '"\n "uprofile -help" for help')) - elif len(args) == 2: + self.get_profiles() + profiles = self.profiles + list = True + elif len(args) >= 2: try: profile = Profile(args[0]) profile.read_profile() @@ -150,7 +153,10 @@ class UniversalProfileTool: printsystem.print_exception(Exception(\ 'No such option/profile "' + args[0] + \ '"\n "uprofile -help" for help')) - + self.get_profiles() + profiles = self.profiles + list = True + if len(args) == 2: args = None else: |