diff options
author | Sérgio Almeida <mephx.x@gmail.com> | 2009-07-29 17:55:47 +0100 |
---|---|---|
committer | Sérgio Almeida <mephx.x@gmail.com> | 2009-07-29 17:55:47 +0100 |
commit | 130ba3a442e0024630d326d961e824e9dd5b3413 (patch) | |
tree | 16eefacffbfed4837aaeae4dc2a888a7f17ed47c /uio.py | |
parent | fixed link family bug (diff) | |
download | uselect-130ba3a442e0024630d326d961e824e9dd5b3413.tar.gz uselect-130ba3a442e0024630d326d961e824e9dd5b3413.tar.bz2 uselect-130ba3a442e0024630d326d961e824e9dd5b3413.zip |
fixed ui bug
Diffstat (limited to 'uio.py')
-rw-r--r-- | uio.py | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -305,14 +305,8 @@ class PrintSystem: self.print_table([ \ [bold + '-v', bullet + space + 'Verbose Mode'], \ [bold + '-nc', bullet + space + 'No Colors'], \ - [bold + '-help', bullet + space + 'See this screen'], \ - [bold + '-list', bullet + space + 'List Profiles'], \ [bold + '-version', bullet + space + 'Version Information']]) - self.print_line('') - self.print_line(highlight + space + 'Usage Examples:' + reset) - self.print_table([ \ - [bold + 'uprofile', bullet + space + 'Activates Folder Profile. Fallback to user profile.'], \ - [bold + 'uprofile <profile>', bullet + space + 'See Details on <profile>']]) + class ProfilePrintSystem(PrintSystem): @@ -375,6 +369,20 @@ class ProfilePrintSystem(PrintSystem): self.print_line(bold + lime + 'Usage:' + reset + ' uprofile <options> ' + profile_name \ + space + action_name + space + options) + + def print_options(self): + self.print_line(highlight + space + 'Options:' + reset) + self.print_table([ \ + [bold + '-v', bullet + space + 'Verbose Mode'], \ + [bold + '-nc', bullet + space + 'No Colors'], \ + [bold + '-help', bullet + space + 'See this screen'], \ + [bold + '-list', bullet + space + 'List Profiles'], \ + [bold + '-version', bullet + space + 'Version Information']]) + self.print_line('') + self.print_line(highlight + space + 'Usage Examples:' + reset) + self.print_table([ \ + [bold + 'uprofile', bullet + space + 'Activates Folder Profile. Fallback to user profile.'], \ + [bold + 'uprofile <profile>', bullet + space + 'See Details on <profile>']]) filesystem = FileSystem() printsystem = PrintSystem() |