mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-17 01:32:37 +02:00
fix help message
This commit is contained in:
4
jc/jc.py
4
jc/jc.py
@ -15,9 +15,9 @@ def main():
|
|||||||
data = sys.stdin.read()
|
data = sys.stdin.read()
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print(f'\nError: {sys.argv[0]}\n Must specify parser. (e.g. --ls, --netstat, --ifconfig, etc.)')
|
print(f'\nError: jc\n Must specify parser. (e.g. --ls, --netstat, --ifconfig, etc.)')
|
||||||
print(' Use -p to pretty print')
|
print(' Use -p to pretty print')
|
||||||
print(f'\nExample: ls -al | {sys.argv[0]} --ls -p\n')
|
print(f'\nExample: ls -al | jc --ls -p\n')
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
arg = sys.argv[1]
|
arg = sys.argv[1]
|
||||||
|
Reference in New Issue
Block a user