Skip to content

Commit

Permalink
add arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielolobo committed May 30, 2023
1 parent 5b6dbeb commit 15bc231
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
"**/__pycache__": true
},
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
"python.linting.enabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"python.formatting.provider": "none"
}
18 changes: 18 additions & 0 deletions crawley/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from argparse import ArgumentParser


def main(args):
pass


if __name__ == "__main__":

cli_parser = ArgumentParser()
cli_parser.add_argument('outuput', choices=[

'((1) Print html',
'(2) Save in JSON',
'(3)) Save in CSV'])

args = cli_parser.parse_args()
main(args)

0 comments on commit 15bc231

Please sign in to comment.