Skip to content

Commit

Permalink
Only print executable name instead of full path in usage text
Browse files Browse the repository at this point in the history
  • Loading branch information
pckbls committed Jul 26, 2017
1 parent 595222f commit 620aed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulseviz/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
import pyglet
from .pulseaudio import pacmd
Expand All @@ -11,7 +12,7 @@


def print_help():
print('Usage: {0} <source> <visualizer>'.format(sys.argv[0]))
print('Usage: {0} <source> <visualizer>'.format(os.path.basename(sys.argv[0])))

print('\nAvailable sources:')
for source in pacmd.list_sources():
Expand Down

0 comments on commit 620aed7

Please sign in to comment.