summaryrefslogtreecommitdiff
path: root/uio.py
diff options
context:
space:
mode:
Diffstat (limited to 'uio.py')
-rw-r--r--uio.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/uio.py b/uio.py
index f0d9423..4f1a85c 100644
--- a/uio.py
+++ b/uio.py
@@ -20,6 +20,7 @@ bold = lime = red = reset = yellow = notice = ''
error = warning = bullet = ok = highlight = ''
verbose = False
+
class Counter:
def __init__(self):
@@ -31,6 +32,7 @@ class FileSystem:
def __init__(self):
""" FileSystem Contructor """
self.home = os.getenv('HOME')
+ self.set_global = False
self.uid = pwd.getpwuid(os.getuid())[0]
self.environment = self.home + '/.uselect/'
@@ -309,10 +311,13 @@ class PrintSystem:
def print_options(self):
self.print_line(highlight + space + 'Options:' + reset)
- self.print_table([ \
+ table = [\
[bold + '-v', bullet + space + 'Verbose Mode'], \
[bold + '-nc', bullet + space + 'No Colors'], \
- [bold + '-version', bullet + space + 'Version Information']])
+ [bold + '-version', bullet + space + 'Version Information']]
+ if filesystem.uid == 'root':
+ table.append([bold + '-global', bullet + space + 'Set Globally'])
+ self.print_table(table)
class ProfilePrintSystem(PrintSystem):