Skip to content

Commit 8606fb3

Browse files
committed
change ignore option
1 parent 2fb7ba0 commit 8606fb3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

BigStash/upload.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""bgst is a command line client to BigStash.co
22
33
Usage:
4-
bgst put [-i IGNORE] [-t TITLE] [--silent] [--dont-wait] FILES...
4+
bgst put [--ignore-file IGNORE] [-t TITLE] [--silent] [--dont-wait] FILES...
55
bgst settings [--user=USERNAME] [--password=PASSWORD]
66
bgst settings --reset
77
bgst list [--limit=NUMBER]
@@ -22,7 +22,7 @@
2222
--reset Remove saved configuration, revoke
2323
authentication token.
2424
--limit=NUMBER Show up to NUMBER results. [default: 10]
25-
-i, --ignore=IGNORE Path to a .gitignore like file.
25+
--ignore-file=IGNORE Path to a .gitignore like file.
2626
"""
2727

2828
from __future__ import print_function
@@ -200,8 +200,9 @@ def bgst_put(args, settings):
200200
opt_dont_wait = False if not args['--dont-wait'] else True
201201
upload = None
202202
filepaths = map(smart_str, args['FILES'])
203-
if args['--ignore']:
204-
setup_user_ignore(args['--ignore'])
203+
ignorefile = args['--ignore-file']
204+
if ignorefile:
205+
setup_user_ignore(ignorefile)
205206
manifest, errors, ignored = Manifest.from_paths(
206207
paths=filepaths, title=title)
207208
ignored_msg = ''

0 commit comments

Comments
 (0)