Revert "Using long options wherever applicable, using "=" spacer for them."
This reverts commit 3f3fbdd21c
.
This commit is contained in:
parent
3f3fbdd21c
commit
365b0b2972
@ -57,7 +57,7 @@ class Flag(CommandMapping):
|
||||
class Option(CommandMapping):
|
||||
def __init__(self, option):
|
||||
self.option = option
|
||||
self.spacer = "=" if option.startswith("--") else " "
|
||||
self.spacer = " "
|
||||
|
||||
def map(self, value):
|
||||
if value is not None:
|
||||
|
@ -23,15 +23,15 @@ class ConnectorSource(SdrSource):
|
||||
.getCommandMapper()
|
||||
.setMappings(
|
||||
{
|
||||
"samp_rate": Option("--samplerate"),
|
||||
"tuner_freq": Option("--frequency"),
|
||||
"port": Option("--port"),
|
||||
"controlPort": Option("--control"),
|
||||
"device": Option("--device"),
|
||||
"iqswap": Flag("--iqswap"),
|
||||
"rtltcp_compat": Option("--rtltcp"),
|
||||
"ppm": Option("--ppm"),
|
||||
"rf_gain": Option("--gain"),
|
||||
"samp_rate": Option("-s"),
|
||||
"tuner_freq": Option("-f"),
|
||||
"port": Option("-p"),
|
||||
"controlPort": Option("-c"),
|
||||
"device": Option("-d"),
|
||||
"iqswap": Flag("-i"),
|
||||
"rtltcp_compat": Option("-r"),
|
||||
"ppm": Option("-P"),
|
||||
"rf_gain": Option("-g"),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ class RtlSdrSource(ConnectorSource):
|
||||
super()
|
||||
.getCommandMapper()
|
||||
.setBase("rtl_connector")
|
||||
.setMappings({"bias_tee": Flag("--biastee"), "direct_sampling": Option("--directsampling")})
|
||||
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
|
||||
)
|
||||
|
||||
|
||||
|
@ -13,8 +13,8 @@ class RtlTcpSource(ConnectorSource):
|
||||
.setBase("rtl_tcp_connector")
|
||||
.setMappings(
|
||||
{
|
||||
"bias_tee": Flag("--biastee"),
|
||||
"direct_sampling": Option("--directsampling"),
|
||||
"bias_tee": Flag("-b"),
|
||||
"direct_sampling": Option("-e"),
|
||||
"remote": Argument(),
|
||||
}
|
||||
)
|
||||
|
@ -15,8 +15,8 @@ class SoapyConnectorSource(ConnectorSource, metaclass=ABCMeta):
|
||||
.setBase("soapy_connector")
|
||||
.setMappings(
|
||||
{
|
||||
"antenna": Option("--antenna"),
|
||||
"soapy_settings": Option("--settings"),
|
||||
"antenna": Option("-a"),
|
||||
"soapy_settings": Option("-t"),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user