mirror of
https://github.com/cooperhammond/irs.git
synced 2025-04-17 14:01:39 +00:00
Merge pull request #32 from kepoorhampond/cleaner-cli
silence argparse errors
This commit is contained in:
commit
2e645ad389
|
@ -5,7 +5,6 @@ python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- irs --setup
|
- irs --setup
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("-S", "--setup", dest="setup", help="Setup IRS",
|
parser.add_argument("-S", "--setup", dest="setup", help="Setup IRS",
|
||||||
action="store_true")
|
action="store_true")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args, unknown = parser.parse_known_args()
|
||||||
|
|
||||||
if args.setup:
|
if args.setup:
|
||||||
setup()
|
setup()
|
||||||
|
|
|
@ -13,6 +13,10 @@ from .utils import Config, console
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
|
# Setup
|
||||||
|
parser.add_argument("-S", "--setup", dest="setup", help="Setup IRS",
|
||||||
|
action="store_true")
|
||||||
|
|
||||||
# Single Song
|
# Single Song
|
||||||
parser.add_argument("-a", "--artist", dest="artist", help="Specify artist \
|
parser.add_argument("-a", "--artist", dest="artist", help="Specify artist \
|
||||||
name. Must be used with -s/--song or -A/--album")
|
name. Must be used with -s/--song or -A/--album")
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
--index-url https://pypi.python.org/simple/
|
|
||||||
|
|
||||||
bs4
|
|
||||||
mutagen
|
|
||||||
requests
|
|
||||||
spotipy
|
|
||||||
ydl-binaries
|
|
Loading…
Reference in a new issue