added some sensible default values

This commit is contained in:
Martinez 2015-02-27 23:46:01 +01:00
parent 8da671a4bb
commit c14f949796

View file

@ -25,9 +25,9 @@ _print = over.core.textui.Output('Find Orphans')
if __name__ == '__main__':
main = over.core.app.Main('Find Orphans', None, 'AWARE-Overwatch Joint Software License')
main.add_option('filter', 'str', ['/home/*', '/var/*', '*.pyc', '/lib*/modules/*', '*.pyo'], 'Shell globs that should be filtered out.', plural=True)
main.add_option('filter', 'str', ['/home/*', '/var/*', '*.pyc', '/lib*/modules/*', '*.pyo', '/usr/share/mime/*', '/usr/local/*'], 'Shell globs that should be filtered out.', plural=True)
main.add_option('null-separated', 'bool', False, 'Output each filename separated with a null character. Otherwise use a newline.', short_name='0')
main.add_option('output', 'bool', False, 'Output filenames to stdout. Otherwise just counts them.')
main.add_option('output', 'bool', True, 'Output filenames to stdout. Otherwise just counts them.')
main.add_help('Description', ['Finds files on Gentoo systems that aren\'t owned by any installed package and lists them.'])
main.enable_help('h')
main.parse()