slpkg/slpkg/cli_menu.py
Dimitris Zlatanidis 91eba2ffea Fixed packaging
2022-06-17 19:36:07 +03:00

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)