Skip to content

Commit 5423192

Browse files
committed
print usage if no parameters are given
1 parent 2028873 commit 5423192

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stashcp/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,9 @@ def main():
856856
sys.exit(0)
857857

858858
if len(opts) != 2:
859-
parser.error('Source and Destination must be specified on command line')
859+
logging.error('Source and Destination must be specified on command line')
860+
parser.print_help()
861+
sys.exit(1)
860862
else:
861863
source=opts[0]
862864
destination=opts[1]

0 commit comments

Comments
 (0)