Skip to content

Commit

Permalink
Use the argv variable instead of sys.argv
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Apr 12, 2019
1 parent d883152 commit 38a1654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oversteer/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def run(self, argv):
from .gtk_ui import GtkUi
GtkUi(self.version, self.datadir)
else:
parser = argparse.ArgumentParser(description=_("Oversteer - Steering Wheel Manager"))
parser = argparse.ArgumentParser(prog=argv[0], description=_("Oversteer - Steering Wheel Manager"))
parser.add_argument('device_id', nargs='?', help=_("Device id"))
parser.add_argument('--list', action='store_true', help=_("list connected devices"))
parser.add_argument('--mode', help=_("set the compatibility mode"))
Expand Down

0 comments on commit 38a1654

Please sign in to comment.