blob: 4bf0f8127a777d806614117a0f1d46d156154e54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import sys
import container # 1
class UserError(Exception):
pass
def entry():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-o', '--output', required=True)
parser.add_argument('-s', '--squashfs-path', required=True)
parser.add_argument('input', nargs='*')
args = parser.parse_args()
return container.join_layers(args.input, args.output, args.squashfs_path)
if __name__ == '__main__':
sys.exit(entry())
|