1
0
Fork 0
mirror of synced 2024-07-01 04:20:55 +12:00
ArchiveBox/archivebox/cli/archivebox_init.py
2019-04-17 02:22:19 -04:00

31 lines
598 B
Python
Executable file

#!/usr/bin/env python3
__package__ = 'archivebox.cli'
__command__ = 'archivebox init'
__description__ = 'Initialize a new ArchiveBox collection in the current directory'
import os
import sys
import argparse
from ..legacy.util import reject_stdin
from ..legacy.main import init
def main(args=None):
args = sys.argv[1:] if args is None else args
parser = argparse.ArgumentParser(
prog=__command__,
description=__description__,
add_help=True,
)
parser.parse_args(args)
reject_stdin(__command__)
init()
if __name__ == '__main__':
main()