mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-06-30 23:01:21 +02:00
Allow comments in configuration file
This commit is contained in:
@ -152,6 +152,10 @@ class Concat(Action):
|
||||
# beginning/end of the lines.
|
||||
class MyArgumentParser(ArgumentParser):
|
||||
def convert_arg_line_to_args(self, arg_line):
|
||||
# Ignore comments
|
||||
if arg_line.startswith("#"):
|
||||
return []
|
||||
|
||||
# strip whitespace at beginning and end of line
|
||||
arg_line = arg_line.strip()
|
||||
|
||||
|
Reference in New Issue
Block a user