mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Fix revng --help displaying absolute paths
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
import argparse
|
||||
import dataclasses
|
||||
import os
|
||||
import sys
|
||||
from typing import Tuple
|
||||
|
||||
@@ -26,7 +27,8 @@ class Command:
|
||||
|
||||
class ExternalCommand(Command):
|
||||
def __init__(self, command, path):
|
||||
super().__init__(command, f"""see {sys.argv[0]} {" ".join(command)} --help""", False)
|
||||
executable_name = os.path.basename(sys.argv[0])
|
||||
super().__init__(command, f"""see {executable_name} {" ".join(command)} --help""", False)
|
||||
self.path = path
|
||||
|
||||
def register_arguments(self, parser):
|
||||
|
||||
Reference in New Issue
Block a user