summaryrefslogtreecommitdiffstats
path: root/bin/hostinfo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hostinfo')
-rwxr-xr-xbin/hostinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hostinfo b/bin/hostinfo
index ea785d8..1ee31d5 100755
--- a/bin/hostinfo
+++ b/bin/hostinfo
@@ -48,7 +48,7 @@ def find_host(host, key=None, oneline=False):
def main():
self_name = sys.argv.pop(0)
- optlist, args = getopt.getopt(sys.argv, 'o', ['oneline'])
+ optlist, args = getopt.gnu_getopt(sys.argv, 'o', ['oneline'])
flags = [opt for (opt, _) in optlist]
oneline = '--oneline' in flags or '-o' in flags