Commit 90bc7bbc authored by Cyril Roelandt's avatar Cyril Roelandt
Browse files

upt package: add a '--output' option.

parent 16157d97
......@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
Based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- upt package: Add the '--output' option
## [0.3] - 2018-03-13
### Added
- Added 'frontends' and 'backends' extras to make installation easier
......
......@@ -102,6 +102,10 @@ def create_parser():
help='Frontend to use')
required_args.add_argument('-b', '--backend', required=True,
help='Backend to use')
parser_package.add_argument('-o', '--output',
help='Output file/directory. Defaults to '
'stdout/current directory. This may be '
'ignored by the backend.')
parser_package.add_argument('package', help='Name of the package')
return parser
......@@ -161,7 +165,7 @@ def main():
try:
upt_pkg = frontend.parse(args.package)
upt_pkg.frontend = args.frontend
backend.create_package(upt_pkg)
backend.create_package(upt_pkg, output=args.output)
except upt.exceptions.UnhandledFrontendError as e:
print(e, file=sys.stderr)
sys.exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment