Skip to content

Commit

Permalink
Add argparse command-line argument parser (#2)
Browse files Browse the repository at this point in the history
* added argparse command-line argument parser

* added help, version arguments
  • Loading branch information
rjwignar authored May 8, 2024
1 parent 1444290 commit 74c5942
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions folderizer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
import argparse

parser = argparse.ArgumentParser(
prog="folderizer",
description="File organization command-line tool.",
epilog="Thanks for using %(prog)s!")
parser.add_argument('filepath')
parser.add_argument("-v","--version", action="version", version="%(prog)s 0.1.0")
args = parser.parse_args()

def example_function():
return 1 + 1

0 comments on commit 74c5942

Please sign in to comment.