mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-10 20:01:54 +01:00
24 lines
1 KiB
Python
24 lines
1 KiB
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from slpkg.metadata import Metadata
|
|
|
|
|
|
def usage(status):
|
|
args = [f'Usage: {Metadata.prog_name} [OPTIONS] [packages]\n',
|
|
' Tool that interact with the SBo repository.\n',
|
|
'Options:',
|
|
' update Update the data packages.',
|
|
' build Build only the packages.',
|
|
' install Build and install the packages.',
|
|
' remove Remove installed packages.',
|
|
' clean-logs Purge logs of dependencies.',
|
|
' --yes Answer Yes to all questions.',
|
|
' --resolve-off Turns off dependency resolving.',
|
|
' --reinstall Use this option if you want to upgrade.',
|
|
' -h, --help Show this message and exit.',
|
|
' -v, --version Print version and exit.\n',
|
|
'If you need more information try to use slpkg manpage.']
|
|
for opt in args:
|
|
print(opt)
|
|
raise SystemExit(status)
|